pub struct Formatting {
pub title_case: bool,
pub spaces: bool,
pub conjunctions: bool,
pub commas: bool,
pub dashes: bool,
}
Expand description
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”
Implementations§
Source§impl Formatting
impl Formatting
Sourcepub fn all() -> Formatting
pub fn all() -> Formatting
All formatting options enabled
Sourcepub fn none() -> Formatting
pub fn none() -> Formatting
No formatting options enabled
Trait Implementations§
Source§impl Clone for Formatting
impl Clone for Formatting
Source§fn clone(&self) -> Formatting
fn clone(&self) -> Formatting
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 Default for Formatting
impl Default for Formatting
Source§fn default() -> Formatting
fn default() -> Formatting
Returns the “default value” for a type. Read more
impl Copy for Formatting
Auto Trait Implementations§
impl Freeze for Formatting
impl RefUnwindSafe for Formatting
impl Send for Formatting
impl Sync for Formatting
impl Unpin for Formatting
impl UnwindSafe for Formatting
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)