Struct ntext::Formatting [−][src]
Set the formatting of the output
Fields
capitalize: boolcapitalize 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]
fn clone(&self) -> Formatting<'format>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'format> Copy for Formatting<'format>[src]
Auto Trait Implementations
impl<'format> RefUnwindSafe for Formatting<'format>
impl<'format> Send for Formatting<'format>
impl<'format> Sync for Formatting<'format>
impl<'format> Unpin for Formatting<'format>
impl<'format> UnwindSafe for Formatting<'format>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,