Function shortscale::shortscale_string_writer [−][src]
pub fn shortscale_string_writer(s: &mut String, num: u64)
Same as shortscale but writes words into mutable String.
Example
use shortscale::shortscale_string_writer; let mut my_string = String::from("The number 27 in words is "); my_string.reserve(1024); // pre-allocate capacity (for performance only) shortscale_string_writer(&mut my_string, 27); assert_eq!(my_string, "The number 27 in words is twenty seven");