[][src]Struct ntext::Formatting

pub struct Formatting<'format> {
    pub capitalize: bool,
    pub digit_seperator: Option<&'format str>,
    pub place_seperator: Option<&'format str>,
    pub tens_seperator: Option<&'format str>,
}

Set the formatting of the output

Fields

capitalize: bool

capitalize the start of the word.

digit_seperator: Option<&'format str>

Set the seperator in between digits like "threehundred,twentytwo".

place_seperator: Option<&'format str>

Set the seperator in between words like "three/hundred".

tens_seperator: Option<&'format str>

Set the seperator between tens place digits like "twenty-two".

Implementations

impl<'format> Formatting<'format>[src]

pub fn default() -> Self[src]

Get the default formatting.

pub fn none() -> Self[src]

No formatting at all

pub fn with_seperator(seperator: &'format str) -> Self[src]

With same formatting for all

pub fn capitalize(&mut self) -> Self[src]

Capitalize the formatting

pub fn decapitalize(&mut self) -> Self[src]

Lower case the formatting struct

Trait Implementations

impl<'format> Clone for Formatting<'format>[src]

impl<'format> Copy for Formatting<'format>[src]

Auto Trait Implementations

impl<'format> RefUnwindSafe for Formatting<'format>[src]

impl<'format> Send for Formatting<'format>[src]

impl<'format> Sync for Formatting<'format>[src]

impl<'format> Unpin for Formatting<'format>[src]

impl<'format> UnwindSafe for Formatting<'format>[src]

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.