Struct numbers_into_words::process_input::Config
source · pub struct Config { /* private fields */ }
Expand description
Helper for command-line mode
Examples
use numbers_into_words::Config;
use std::env;
/* Essentially the entire main function for the command-line program */
let args: Vec<String> = env::args().collect();
let config = Config::parse(args);
println!("{}", config.process());
use numbers_into_words::Config;
let args: Vec<String> = vec!["program_name".to_string(), "42".to_string()];
assert_eq!(
Config::parse(args).process(),
String::from("42: forty-two"));
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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