pub struct CommandArgs(/* private fields */);Expand description
Command line arguments wrapper.
Implementations§
Source§impl CommandArgs
impl CommandArgs
Sourcepub fn new(args: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn new(args: impl IntoIterator<Item = impl Into<String>>) -> Self
Create new CommandArgs from an iterator.
Trait Implementations§
Source§impl Clone for CommandArgs
impl Clone for CommandArgs
Source§fn clone(&self) -> CommandArgs
fn clone(&self) -> CommandArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandArgs
impl Debug for CommandArgs
Source§impl Default for CommandArgs
impl Default for CommandArgs
Source§fn default() -> CommandArgs
fn default() -> CommandArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandArgs
impl<'de> Deserialize<'de> for CommandArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a [&'a str]> for CommandArgs
impl<'a> From<&'a [&'a str]> for CommandArgs
Source§impl PartialEq for CommandArgs
impl PartialEq for CommandArgs
Source§impl Serialize for CommandArgs
impl Serialize for CommandArgs
impl Eq for CommandArgs
impl StructuralPartialEq for CommandArgs
Auto Trait Implementations§
impl Freeze for CommandArgs
impl RefUnwindSafe for CommandArgs
impl Send for CommandArgs
impl Sync for CommandArgs
impl Unpin for CommandArgs
impl UnwindSafe for CommandArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.