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
title_case: bool
Controls the casing. "One Hundred" vs "one hundred"
spaces: bool
Controls the use of spaces. "One Hundred" vs "OneHundred"
conjunctions: bool
Controls the use of "and". "One Hundred and One" vs "One Hundred One"
commas: bool
Controls the use of commas. "One Thousand, One Hundred" vs "One Thousand One Hundred"
dashes: bool
Controls the use of dashes. "Forty-Five" vs "Forty Five"
Methods
impl Formatting
[src]
fn all() -> Formatting
All formatting options enabled
fn none() -> Formatting
No formatting options enabled
Trait Implementations
impl Copy for Formatting
[src]
impl Clone for Formatting
[src]
fn clone(&self) -> Formatting
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for Formatting
[src]
fn default() -> Formatting
Returns the "default value" for a type. Read more