Struct monies::Params[][src]

pub struct Params {
    pub digit_separator: char,
    pub exponent_separator: char,
    pub separator_pattern: Vec<usize>,
    pub positions: Vec<Position>,
    pub rounding: Option<u32>,
    pub symbol: Option<&'static str>,
    pub code: Option<&'static str>,
}

Group of formatting parameters consumed 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

impl Clone for Params[src]

impl Debug for Params[src]

impl Default for Params[src]

fn default() -> Params[src]

Defines the default parameters to format a Money string.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.