pub struct CliArguments(/* private fields */);
Implementations§
Source§impl CliArguments
impl CliArguments
pub fn unwrap_or_args(_arguments: Option<CliArguments>) -> CliArguments
pub fn from_args() -> CliArguments
pub fn from_vec_os(_arguments: Vec<OsString>) -> CliArguments
pub fn from_vec_str(_arguments: Vec<String>) -> CliArguments
pub fn into_vec_os(self) -> Vec<OsString>
pub fn into_vec_str(self) -> Vec<String>
pub fn is_empty(&self) -> bool
pub fn first_os(&self) -> Option<&OsStr>
pub fn first_str(&self) -> Option<&str>
pub fn remove_first_os(&mut self) -> Option<OsString>
pub fn remove_first_str(&mut self) -> Option<String>
pub fn without_first(self) -> Self
pub fn into_tuple_n_os(self, _length: usize) -> Result<Vec<OsString>, Self>
pub fn into_tuple_n_str(self, _length: usize) -> Result<Vec<String>, Self>
pub fn into_tuple_1_os(self) -> Result<(OsString,), Self>
pub fn into_tuple_1_str(self) -> Result<(String,), Self>
pub fn into_tuple_2_os(self) -> Result<(OsString, OsString), Self>
pub fn into_tuple_2_str(self) -> Result<(String, String), Self>
pub fn into_tuple_3_os(self) -> Result<(OsString, OsString, OsString), Self>
pub fn into_tuple_3_str(self) -> Result<(String, String, String), Self>
Auto Trait Implementations§
impl Freeze for CliArguments
impl RefUnwindSafe for CliArguments
impl Send for CliArguments
impl Sync for CliArguments
impl Unpin for CliArguments
impl UnwindSafe for CliArguments
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