#[non_exhaustive]pub struct CompactDecimalFormatterOptions {
pub grouping_strategy: Option<GroupingStrategy>,
}Expand description
A bag of options defining how numbers will be formatted by
CompactDecimalFormatter.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. Do not use this type unless you are prepared for things to occasionally break.
Graduation tracking issue: issue #7161.
โจ Enabled with the unstable Cargo feature.
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.grouping_strategy: Option<GroupingStrategy>When to render grouping separators.
Default is GroupingStrategy::Min2
Trait Implementationsยง
Sourceยงimpl Clone for CompactDecimalFormatterOptions
impl Clone for CompactDecimalFormatterOptions
Sourceยงfn clone(&self) -> CompactDecimalFormatterOptions
fn clone(&self) -> CompactDecimalFormatterOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท 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
Available on crate feature unstable only.
impl Default for CompactDecimalFormatterOptions
Available on crate feature
unstable only.Sourceยงfn default() -> CompactDecimalFormatterOptions
fn default() -> CompactDecimalFormatterOptions
Returns the โdefault valueโ for a type. Read more
impl Eq for CompactDecimalFormatterOptions
Sourceยงimpl From<CompactDecimalFormatterOptions> for DecimalFormatterOptions
Available on crate feature unstable only.
impl From<CompactDecimalFormatterOptions> for DecimalFormatterOptions
Available on crate feature
unstable only.Sourceยงfn from(
decimal_formatter_options: CompactDecimalFormatterOptions,
) -> DecimalFormatterOptions
fn from( decimal_formatter_options: CompactDecimalFormatterOptions, ) -> DecimalFormatterOptions
Converts to this type from the input type.
Sourceยงimpl From<DecimalFormatterOptions> for CompactDecimalFormatterOptions
Available on crate feature unstable only.
impl From<DecimalFormatterOptions> for CompactDecimalFormatterOptions
Available on crate feature
unstable only.Sourceยงfn from(
decimal_formatter_options: DecimalFormatterOptions,
) -> CompactDecimalFormatterOptions
fn from( decimal_formatter_options: DecimalFormatterOptions, ) -> CompactDecimalFormatterOptions
Converts to this type from the input type.
Sourceยงimpl From<GroupingStrategy> for CompactDecimalFormatterOptions
Available on crate feature unstable only.
impl From<GroupingStrategy> for CompactDecimalFormatterOptions
Available on crate feature
unstable only.Sourceยงfn from(grouping_strategy: GroupingStrategy) -> CompactDecimalFormatterOptions
fn from(grouping_strategy: GroupingStrategy) -> CompactDecimalFormatterOptions
Converts to this type from the input type.
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 UnsafeUnpin 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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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