Struct icu::list::FormattedList
source · [−]pub struct FormattedList<'a, W, I> where
W: 'a + Writeable,
I: 'a + Iterator<Item = W> + Clone, { /* private fields */ }
Expand description
The Writeable
implementation that is returned by ListFormatter::format
. See
the [writeable
] crate for how to consume this.
Trait Implementations
sourceimpl<'a, W, I> Display for FormattedList<'a, W, I> where
W: 'a + Writeable,
I: 'a + Iterator<Item = W> + Clone,
impl<'a, W, I> Display for FormattedList<'a, W, I> where
W: 'a + Writeable,
I: 'a + Iterator<Item = W> + Clone,
sourceimpl<'a, W, I> Writeable for FormattedList<'a, W, I> where
W: 'a + Writeable,
I: 'a + Iterator<Item = W> + Clone,
impl<'a, W, I> Writeable for FormattedList<'a, W, I> where
W: 'a + Writeable,
I: 'a + Iterator<Item = W> + Clone,
sourcefn write_to_parts<V>(&self, sink: &mut V) -> Result<(), Error> where
V: PartsWrite + ?Sized,
fn write_to_parts<V>(&self, sink: &mut V) -> Result<(), Error> where
V: 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. Read more
sourcefn 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
sourcefn write_to<W>(&self, sink: &mut W) -> Result<(), Error> where
W: Write + ?Sized,
fn write_to<W>(&self, sink: &mut W) -> Result<(), Error> where
W: Write + ?Sized,
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. Read more
sourcefn write_to_string(&self) -> Cow<'_, str>
fn write_to_string(&self) -> Cow<'_, str>
Creates a new String
with the data from this Writeable
. Like ToString
,
but smaller and faster. Read more
Auto Trait Implementations
impl<'a, W, I> RefUnwindSafe for FormattedList<'a, W, I> where
I: RefUnwindSafe,
impl<'a, W, I> Send for FormattedList<'a, W, I> where
I: Send,
impl<'a, W, I> Sync for FormattedList<'a, W, I> where
I: Sync,
impl<'a, W, I> Unpin for FormattedList<'a, W, I> where
I: Unpin,
impl<'a, W, I> UnwindSafe for FormattedList<'a, W, I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Separable for T where
T: Display,
impl<T> Separable for T where
T: Display,
sourcefn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given SeparatorPolicy
. Read more
sourcefn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
sourcefn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
sourcefn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
sourcefn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more