Struct icu::decimal::FormattedFixedDecimal
source · [−]pub struct FormattedFixedDecimal<'l> { /* private fields */ }
Expand description
An intermediate structure returned by FixedDecimalFormatter
.
Use Writeable
to render the formatted decimal to a string or buffer.
Trait Implementations
sourceimpl<'l> Clone for FormattedFixedDecimal<'l>
impl<'l> Clone for FormattedFixedDecimal<'l>
sourcefn clone(&self) -> FormattedFixedDecimal<'l>
fn clone(&self) -> FormattedFixedDecimal<'l>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'l> Debug for FormattedFixedDecimal<'l>
impl<'l> Debug for FormattedFixedDecimal<'l>
sourceimpl<'_> Display for FormattedFixedDecimal<'_>
impl<'_> Display for FormattedFixedDecimal<'_>
This trait is implemented for compatibility with fmt!
.
To create a string, Writeable::write_to_string
is usually more efficient.
sourceimpl<'l> PartialEq<FormattedFixedDecimal<'l>> for FormattedFixedDecimal<'l>
impl<'l> PartialEq<FormattedFixedDecimal<'l>> for FormattedFixedDecimal<'l>
sourcefn eq(&self, other: &FormattedFixedDecimal<'l>) -> bool
fn eq(&self, other: &FormattedFixedDecimal<'l>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FormattedFixedDecimal<'l>) -> bool
fn ne(&self, other: &FormattedFixedDecimal<'l>) -> bool
This method tests for !=
.
sourceimpl<'l> Writeable for FormattedFixedDecimal<'l>
impl<'l> Writeable for FormattedFixedDecimal<'l>
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_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. 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_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
impl<'l> StructuralPartialEq for FormattedFixedDecimal<'l>
Auto Trait Implementations
impl<'l> RefUnwindSafe for FormattedFixedDecimal<'l>
impl<'l> Send for FormattedFixedDecimal<'l>
impl<'l> Sync for FormattedFixedDecimal<'l>
impl<'l> Unpin for FormattedFixedDecimal<'l>
impl<'l> UnwindSafe for FormattedFixedDecimal<'l>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more