pub struct DecimalSymbols<'data> {
    pub strings: VarZeroCow<'data, DecimalSymbolsStrs>,
    pub grouping_sizes: GroupingSizes,
}Expand description
Symbols and metadata required for formatting a Decimal.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Fieldsยง
ยงstrings: VarZeroCow<'data, DecimalSymbolsStrs>String data for the symbols: +/- affixes and separators
grouping_sizes: GroupingSizesSettings used to determine where to place groups in the integer part of the number.
Implementationsยง
Sourceยงimpl DecimalSymbols<'_>
 
impl DecimalSymbols<'_>
Sourcepub fn minus_sign_affixes(&self) -> (&str, &str)
 
pub fn minus_sign_affixes(&self) -> (&str, &str)
Return (prefix, suffix) for the minus sign
Sourcepub fn plus_sign_affixes(&self) -> (&str, &str)
 
pub fn plus_sign_affixes(&self) -> (&str, &str)
Return (prefix, suffix) for the minus sign
Sourcepub fn decimal_separator(&self) -> &str
 
pub fn decimal_separator(&self) -> &str
Return thhe decimal separator
Sourcepub fn grouping_separator(&self) -> &str
 
pub fn grouping_separator(&self) -> &str
Return thhe decimal separator
Trait Implementationsยง
Sourceยงimpl<'data> Clone for DecimalSymbols<'data>
 
impl<'data> Clone for DecimalSymbols<'data>
Sourceยงfn clone(&self) -> DecimalSymbols<'data>
 
fn clone(&self) -> DecimalSymbols<'data>
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<'data> Debug for DecimalSymbols<'data>
 
impl<'data> Debug for DecimalSymbols<'data>
Sourceยงimpl<'de, 'data> Deserialize<'de> for DecimalSymbols<'data>where
    'de: 'data,
 
impl<'de, 'data> Deserialize<'de> for DecimalSymbols<'data>where
    'de: 'data,
Sourceยงfn deserialize<__D>(
    __deserializer: __D,
) -> Result<DecimalSymbols<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<DecimalSymbols<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MaybeAsVarULE for DecimalSymbols<'_>
 
impl MaybeAsVarULE for DecimalSymbols<'_>
Sourceยงimpl<'data> PartialEq for DecimalSymbols<'data>
 
impl<'data> PartialEq for DecimalSymbols<'data>
Sourceยงimpl<'a> Yokeable<'a> for DecimalSymbols<'static>
 
impl<'a> Yokeable<'a> for DecimalSymbols<'static>
Sourceยงtype Output = DecimalSymbols<'a>
 
type Output = DecimalSymbols<'a>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> <DecimalSymbols<'static> as Yokeable<'a>>::Output
 
fn transform_owned(self) -> <DecimalSymbols<'static> as Yokeable<'a>>::Output
Sourceยงunsafe fn make(
    this: <DecimalSymbols<'static> as Yokeable<'a>>::Output,
) -> DecimalSymbols<'static>
 
unsafe fn make( this: <DecimalSymbols<'static> as Yokeable<'a>>::Output, ) -> DecimalSymbols<'static>
This method can be used to cast away 
Self<'a>โs lifetime. Read moreSourceยงfn transform_mut<F>(&'a mut self, f: F)
 
fn transform_mut<F>(&'a mut self, f: F)
This method must cast 
self between &'a mut Self<'static> and &'a mut Self<'a>,
and pass it to f. Read moreSourceยงimpl<'zf, 'zf_inner> ZeroFrom<'zf, DecimalSymbols<'zf_inner>> for DecimalSymbols<'zf>
 
impl<'zf, 'zf_inner> ZeroFrom<'zf, DecimalSymbols<'zf_inner>> for DecimalSymbols<'zf>
Sourceยงfn zero_from(this: &'zf DecimalSymbols<'zf_inner>) -> DecimalSymbols<'zf>
 
fn zero_from(this: &'zf DecimalSymbols<'zf_inner>) -> DecimalSymbols<'zf>
Clone the other 
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for DecimalSymbols<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for DecimalSymbols<'data>
impl<'data> RefUnwindSafe for DecimalSymbols<'data>
impl<'data> Send for DecimalSymbols<'data>
impl<'data> Sync for DecimalSymbols<'data>
impl<'data> Unpin for DecimalSymbols<'data>
impl<'data> UnwindSafe for DecimalSymbols<'data>
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ยง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