Struct jargon_args::Jargon [−][src]
pub struct Jargon(_);Expand description
Implementations
Places provided vector into Jargon. Please have the program’s name or subcommand’s name at
index 0. 0 is always ignored.
Checks if provided key is given in arguments. Removes it.
Runs function that does not return a value if specified key exists. Removes the program’s name from provided vector.
Runs function that returns Option
Runs function that returns Result<T, jargon_args::Error> if specified key exists. Removes the program’s name from provided vector.
Checks if key exists, removes it, and returns it and all remaining arguments in
Some(Vec
Checks for provided key in arguments, removes it, returns Some(String) with the value after it if there is one. None is there is no value.
Checks for provided key in arguments, removes it, returns Ok(String) with the value after it if there is one. Err(jargon_args::Error) is there is no value.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Jargon
impl UnwindSafe for Jargon
Blanket Implementations
Mutably borrows from an owned value. Read more