Struct english_numbers::Formatting [] [src]

pub struct Formatting {
    pub title_case: bool,
    pub spaces: bool,
    pub conjunctions: bool,
    pub commas: bool,
    pub dashes: bool,
}

Formatting options for conversion

This struct does not control whether "short" or "long" number formats are used.

Fields

Controls the casing. "One Hundred" vs "one hundred"

Controls the use of spaces. "One Hundred" vs "OneHundred"

Controls the use of "and". "One Hundred and One" vs "One Hundred One"

Controls the use of commas. "One Thousand, One Hundred" vs "One Thousand One Hundred"

Controls the use of dashes. "Forty-Five" vs "Forty Five"

Methods

impl Formatting
[src]

All formatting options enabled

No formatting options enabled

Trait Implementations

impl Copy for Formatting
[src]

impl Clone for Formatting
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Formatting
[src]

Returns the "default value" for a type. Read more