pub(crate) struct FullCaseWriteable<'a, 'data, const IS_TITLE_CONTEXT: bool> {
data: &'data CaseMap<'data>,
src: &'a str,
locale: CaseMapLocale,
mapping: MappingKind,
titlecase_tail_casing: TrailingCase,
}Fields§
§data: &'data CaseMap<'data>§src: &'a str§locale: CaseMapLocale§mapping: MappingKind§titlecase_tail_casing: TrailingCaseTrait 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_string(&self) -> Cow<'a, str>
fn write_to_string(&self) -> Cow<'a, str>
Creates a new string with the data from this
Writeable. Read moreSource§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, 'data, const IS_TITLE_CONTEXT: bool> Freeze for FullCaseWriteable<'a, 'data, IS_TITLE_CONTEXT>
impl<'a, 'data, const IS_TITLE_CONTEXT: bool> RefUnwindSafe for FullCaseWriteable<'a, 'data, IS_TITLE_CONTEXT>
impl<'a, 'data, const IS_TITLE_CONTEXT: bool> Send for FullCaseWriteable<'a, 'data, IS_TITLE_CONTEXT>
impl<'a, 'data, const IS_TITLE_CONTEXT: bool> Sync for FullCaseWriteable<'a, 'data, IS_TITLE_CONTEXT>
impl<'a, 'data, const IS_TITLE_CONTEXT: bool> Unpin for FullCaseWriteable<'a, 'data, IS_TITLE_CONTEXT>
impl<'a, 'data, const IS_TITLE_CONTEXT: bool> UnsafeUnpin for FullCaseWriteable<'a, 'data, IS_TITLE_CONTEXT>
impl<'a, 'data, const IS_TITLE_CONTEXT: bool> UnwindSafe for FullCaseWriteable<'a, 'data, 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