pub struct Args {
pub command: Command,
}Expand description
CLI arguments container.
Fields§
§command: CommandThe command to execute.
Implementations§
Source§impl Args
impl Args
Sourcepub fn parse_from<I, S>(args: I) -> Self
pub fn parse_from<I, S>(args: I) -> Self
Parse command-line arguments from an iterator.
This method is testable as it accepts any iterator of strings,
not just std::env::args().
Trait Implementations§
impl StructuralPartialEq for Args
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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