pub struct NumberToWordsOptions {
pub group: u8,
pub comma: String,
pub andword: String,
pub zero: String,
pub one: String,
pub decimal: Option<String>,
pub threshold: Option<i64>,
}Expand description
Options for Engine::number_to_words_with.
Fields§
§group: u8Read digits in groups of 1, 2 or 3 (“one two three”); 0 reads the whole number.
comma: String§andword: StringThe word between hundreds and tens (“one hundred and one”); may be empty.
zero: String§one: String§decimal: Option<String>The word for a decimal point; None disables decimal handling.
threshold: Option<i64>Numbers above this are returned as digits (with thousands commas) instead of words.
Trait Implementations§
Source§impl Clone for NumberToWordsOptions
impl Clone for NumberToWordsOptions
Source§impl Debug for NumberToWordsOptions
impl Debug for NumberToWordsOptions
Source§impl Default for NumberToWordsOptions
impl Default for NumberToWordsOptions
Source§impl PartialEq for NumberToWordsOptions
impl PartialEq for NumberToWordsOptions
impl StructuralPartialEq for NumberToWordsOptions
Auto Trait Implementations§
impl Freeze for NumberToWordsOptions
impl RefUnwindSafe for NumberToWordsOptions
impl Send for NumberToWordsOptions
impl Sync for NumberToWordsOptions
impl Unpin for NumberToWordsOptions
impl UnsafeUnpin for NumberToWordsOptions
impl UnwindSafe for NumberToWordsOptions
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