[−][src]Struct args_functional::Arguments
Implementations
impl Arguments
[src]
main struct that organizes argument parsing
pub fn new() -> Self
[src]
constructs the parser
pub fn invoke_callback<F>(&mut self, flag: &str, func: F) where
F: Fn(&[Arg], &Arguments),
F: 'static,
[src]
F: Fn(&[Arg], &Arguments),
F: 'static,
adds a callback for a flag when it is found
pub fn parse(&mut self)
[src]
invokes methods associated with the flags saved above
pub fn get_flag(&self, flag_name: &str) -> Option<Flag>
[src]
this function is broken for now
pub fn get_flag_index(&self, flag_name: &str) -> Option<usize>
[src]
pub fn get_arg(&self, flag_name: &str) -> Option<Arg>
[src]
this allows a callback to get a specific argument or flag
pub fn has_arg(&self, flag_name: &str) -> bool
[src]
checks if a flag exists at the same level as a registered operation
pub fn get_flags(&self) -> Vec<Arg>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Arguments
impl !Send for Arguments
impl !Sync for Arguments
impl Unpin for Arguments
impl !UnwindSafe for Arguments
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,