[][src]Struct args_functional::Arguments

pub struct Arguments { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.