Struct icu_casemap::internals::FullCaseWriteable
source · pub(crate) struct FullCaseWriteable<'a, const IS_TITLE_CONTEXT: bool> {
data: &'a CaseMapV1<'a>,
src: &'a str,
locale: CaseMapLocale,
mapping: MappingKind,
titlecase_tail_casing: TrailingCase,
}
Fields§
§data: &'a CaseMapV1<'a>
§src: &'a str
§locale: CaseMapLocale
§mapping: MappingKind
§titlecase_tail_casing: TrailingCase
Trait Implementations§
source§impl<'a, const IS_TITLE_CONTEXT: bool> Writeable for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
impl<'a, const IS_TITLE_CONTEXT: bool> Writeable for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
source§fn write_to<W: Write + ?Sized>(&self, sink: &mut W) -> Result
fn write_to<W: Write + ?Sized>(&self, sink: &mut W) -> Result
Writes a string to the given sink. Errors from the sink are bubbled up.
The default implementation delegates to
write_to_parts
, and discards any
Part
annotations.source§fn writeable_length_hint(&self) -> LengthHint
fn writeable_length_hint(&self) -> LengthHint
Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
source§fn write_to_parts<S>(&self, sink: &mut S) -> Result<(), Error>where
S: PartsWrite + ?Sized,
fn write_to_parts<S>(&self, sink: &mut S) -> Result<(), Error>where
S: PartsWrite + ?Sized,
Write bytes and
Part
annotations to the given sink. Errors from the
sink are bubbled up. The default implementation delegates to write_to
,
and doesn’t produce any Part
annotations.Auto Trait Implementations§
impl<'a, const IS_TITLE_CONTEXT: bool> Freeze for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
impl<'a, const IS_TITLE_CONTEXT: bool> RefUnwindSafe for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
impl<'a, const IS_TITLE_CONTEXT: bool> Send for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
impl<'a, const IS_TITLE_CONTEXT: bool> Sync for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
impl<'a, const IS_TITLE_CONTEXT: bool> Unpin for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
impl<'a, const IS_TITLE_CONTEXT: bool> UnwindSafe for FullCaseWriteable<'a, IS_TITLE_CONTEXT>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more