pub struct CommandArguments { /* private fields */ }
👎Deprecated since 0.3.0: Use standalone functions in
rs_args
.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>
👎Deprecated since 0.3.0: Use
rs_args::get_named
instead.pub fn get_positional(&self, position: usize) -> Option<&str>
👎Deprecated since 0.3.0: Use
rs_args::get_positional
instead.pub fn get_positional_count(&self) -> usize
👎Deprecated since 0.3.0: Use
rs_args::get_positional_count
instead.pub fn get_positional_values(&self) -> Vec<&str>
👎Deprecated since 0.3.0: Use
rs_args::get_positional_values
instead.pub fn get_named_count(&self) -> usize
👎Deprecated since 0.3.0: Use
rs_args::get_named_count
instead.pub fn get_named_values(&self) -> Vec<&str>
👎Deprecated since 0.3.0: Use
rs_args::get_named_values
instead.pub fn get_all(&self) -> Vec<Argument>
👎Deprecated since 0.3.0: Use
rs_args::parse_arguments
instead.pub fn get_flag_names(&self) -> Vec<&str>
👎Deprecated since 0.3.0: Use
rs_args::get_flag_names
instead.pub fn get_flags(&self) -> Vec<Argument>
👎Deprecated since 0.3.0: Use
rs_args::get_flags
instead.pub fn has_flag(&self, name: &str) -> bool
👎Deprecated since 0.3.0: Use
rs_args::get_flag_names
instead.pub fn has_named(&self, name: &str) -> bool
👎Deprecated since 0.3.0: Use
rs_args::has_named
instead.pub fn has_positional(&self, position: usize) -> bool
👎Deprecated since 0.3.0: Use
rs_args::has_positional
instead.Auto Trait Implementations§
impl Freeze for CommandArguments
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