[−][src]Crate numerics
Numerics, a library for converting numbers to their English word readings.
Usage:
use numerics::Numerics; let converter = Numerics::builder().set_custom_negative_word(Some("minus")).build(); assert_eq!(converter.convert_number(123).unwrap(), vec!["one".to_string(), "hundred".to_string(), "twenty".to_string(), "three".to_string()]);
Structs
Numerics | Numerics can be configured to convert integer primitives into their respective english word serializations. |
NumericsBuilder | NumericsBuilder lets you configure a Numerics instance. |
Enums
NumericsError | Library errors |
Traits
AsPrimitive | A generic interface for casting between machine scalars with the
|
Integer | |
Num | The base trait for numeric types, covering |
NumCast | An interface for casting between machine scalars. |
PrimInt | Generic trait for primitive integers. |
SignedAndUnsigned | Signed number operations implemented for both signed and unsigned numbers. |
ToPrimitive | A generic trait for converting a value to a number. |