pub struct DecimalFormatter {
pub integer_digits: usize,
pub fraction_digits: usize,
}Expand description
DecimalFormatter as NumberBox::GetRegionalSettingsAwareDecimalFormatter makes it, in the
en-US conventions: a value in its shortest exact decimal form, with at least
integer_digits digits before a . and fraction_digits after it, without grouping, and a
- before a negative value but not before zero. It reads an optional -, digits and at
most one .; grouping separators, exponents and other signs are not numbers to it.
Fields§
§integer_digits: usizeIntegerDigits: the fewest digits before the decimal point, padded with zeros.
fraction_digits: usizeFractionDigits: the fewest digits after the decimal point, padded with zeros.
Trait Implementations§
Source§impl Clone for DecimalFormatter
impl Clone for DecimalFormatter
impl Copy for DecimalFormatter
Source§impl Debug for DecimalFormatter
impl Debug for DecimalFormatter
Source§impl Default for DecimalFormatter
impl Default for DecimalFormatter
impl Eq for DecimalFormatter
Source§impl NumberFormatter for DecimalFormatter
impl NumberFormatter for DecimalFormatter
Source§impl PartialEq for DecimalFormatter
impl PartialEq for DecimalFormatter
impl StructuralPartialEq for DecimalFormatter
Auto Trait Implementations§
impl Forget for DecimalFormatter
impl Freeze for DecimalFormatter
impl Move for DecimalFormatter
impl RefUnwindSafe for DecimalFormatter
impl Send for DecimalFormatter
impl Sync for DecimalFormatter
impl Unpin for DecimalFormatter
impl UnsafeUnpin for DecimalFormatter
impl UnwindSafe for DecimalFormatter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> ComparableNumberFormatter for Fwhere
F: NumberFormatter + PartialEq + 'static,
impl<F> ComparableNumberFormatter for Fwhere
F: NumberFormatter + PartialEq + 'static,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.