[−][src]Struct rusty_money::Params
A struct which contains parameters consumer by Formatter
.
Fields
digit_separator: char
The character that separates grouped digits (e.g. 1,000,000)
exponent_separator: char
The character that separates minor units from major units (e.g. 1,000.00)
separator_pattern: Vec<usize>
The grouping pattern that is applied to digits / major units (e.g. 1,000,000 vs 1,00,000)
positions: Vec<Position>
The relative positions of the elements in a currency string (e.g. -$1,000 vs $ -1,000)
rounding: Option<u32>
The number of minor unit digits should remain after Round::HalfEven is applied.
symbol: Option<&'static str>
The symbol of the currency (e.g. $)
code: Option<&'static str>
The currency's ISO code (e.g. USD)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,