Struct rs_args::CommandArguments
source · pub struct CommandArguments { /* private fields */ }Implementations§
source§impl CommandArguments
impl CommandArguments
pub fn new(arguments: Vec<Argument>) -> CommandArguments
pub fn from_input(input: &str) -> Result<CommandArguments, LexicalError>
pub fn default_new() -> Result<CommandArguments, LexicalError>
pub fn get_named(&self, name: &str) -> Option<&str>
pub fn get_positional(&self, position: usize) -> Option<&str>
pub fn get_positional_count(&self) -> usize
pub fn get_positional_values(&self) -> Vec<&str>
pub fn get_named_count(&self) -> usize
pub fn get_named_values(&self) -> Vec<&str>
pub fn get_all(&self) -> Vec<Argument>
pub fn get_flag_names(&self) -> Vec<&str>
pub fn get_flags(&self) -> Vec<Argument>
pub fn has_flag(&self, name: &str) -> bool
pub fn has_named(&self, name: &str) -> bool
pub fn has_positional(&self, position: usize) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for CommandArguments
impl Send for CommandArguments
impl Sync for CommandArguments
impl Unpin for CommandArguments
impl UnwindSafe for CommandArguments
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