#[non_exhaustive]pub struct CompactDecimalFormatterOptions {
pub fixed_decimal_formatter_options: FixedDecimalFormatterOptions,
}
Expand description
A bag of options defining how numbers will be formatted by
CompactDecimalFormatter
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.fixed_decimal_formatter_options: FixedDecimalFormatterOptions
Options to configure the inner icu_decimal::FixedDecimalFormatter
.
Trait Implementations§
source§impl Clone for CompactDecimalFormatterOptions
impl Clone for CompactDecimalFormatterOptions
source§fn clone(&self) -> CompactDecimalFormatterOptions
fn clone(&self) -> CompactDecimalFormatterOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CompactDecimalFormatterOptions
impl Default for CompactDecimalFormatterOptions
source§fn default() -> CompactDecimalFormatterOptions
fn default() -> CompactDecimalFormatterOptions
Returns the “default value” for a type. Read more
source§impl From<FixedDecimalFormatterOptions> for CompactDecimalFormatterOptions
impl From<FixedDecimalFormatterOptions> for CompactDecimalFormatterOptions
source§fn from(
fixed_decimal_formatter_options: FixedDecimalFormatterOptions,
) -> CompactDecimalFormatterOptions
fn from( fixed_decimal_formatter_options: FixedDecimalFormatterOptions, ) -> CompactDecimalFormatterOptions
Converts to this type from the input type.
source§impl From<GroupingStrategy> for CompactDecimalFormatterOptions
impl From<GroupingStrategy> for CompactDecimalFormatterOptions
source§fn from(grouping_strategy: GroupingStrategy) -> CompactDecimalFormatterOptions
fn from(grouping_strategy: GroupingStrategy) -> CompactDecimalFormatterOptions
Converts to this type from the input type.
source§impl PartialEq for CompactDecimalFormatterOptions
impl PartialEq for CompactDecimalFormatterOptions
source§fn eq(&self, other: &CompactDecimalFormatterOptions) -> bool
fn eq(&self, other: &CompactDecimalFormatterOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for CompactDecimalFormatterOptions
impl StructuralPartialEq for CompactDecimalFormatterOptions
Auto Trait Implementations§
impl Freeze for CompactDecimalFormatterOptions
impl RefUnwindSafe for CompactDecimalFormatterOptions
impl Send for CompactDecimalFormatterOptions
impl Sync for CompactDecimalFormatterOptions
impl Unpin for CompactDecimalFormatterOptions
impl UnwindSafe for CompactDecimalFormatterOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more