pub struct Parser<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(args: &'a [String]) -> Self
pub fn add_flag(&mut self, arg: &'a str)
pub fn add_action(&mut self, arg: &'a str, action: Box<dyn Fn()>)
pub fn collect_flags(&mut self) -> HashMap<&str, &str>
pub fn execute_actions(&mut self) -> Vec<&str>
pub fn get_val(&self, val: &str) -> Option<&str>
pub fn get_bool(&self, val: &str) -> bool
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> !RefUnwindSafe for Parser<'a>
impl<'a> !Send for Parser<'a>
impl<'a> !Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> !UnwindSafe for Parser<'a>
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