Struct icu_decimal::provider::GroupingSizesV1 [−][src]
Expand description
A collection of settings expressing where to put grouping separators in a decimal number.
For example, 1,000,000
has two grouping separators, positioned along every 3 digits.
Fields
primary: u8
The size of the first (lowest-magnitude) group.
secondary: u8
The size of groups after the first group.
min_grouping: u8
The minimum number of digits required before the first group. For example, if primary=3
and min_grouping=2
, grouping separators will be present on 10,000 and above.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Output = Self
type Output = Self
This type MUST be Self
with the 'static
replaced with 'a
, i.e. Self<'a>
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
This method must cast self
between Self<'static>
and Self<'a>
. Read more
This method can be used to cast away Self<'a>
’s lifetime. Read more
fn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read more
Clone the cart C
into a [Yokeable
] struct, which may retain references into C
.
Auto Trait Implementations
impl RefUnwindSafe for GroupingSizesV1
impl Send for GroupingSizesV1
impl Sync for GroupingSizesV1
impl Unpin for GroupingSizesV1
impl UnwindSafe for GroupingSizesV1
Blanket Implementations
Mutably borrows from an owned value. Read more
Clone this trait object reference, returning a boxed trait object.