pub struct RawArgs { /* private fields */ }Implementations§
Source§impl RawArgs
impl RawArgs
Sourcepub fn from_env() -> Result<Self, CliError>
pub fn from_env() -> Result<Self, CliError>
Validates each environment argument before retaining it; stops at the first invalid word without collecting the remaining arguments.
pub fn parse<I>(args: I) -> Result<Self, CliError>
pub fn parse_with_limits<I>( args: I, limits: ArgLimits, ) -> Result<Self, CliError>
pub fn words(&self) -> &[String]
Trait Implementations§
impl Eq for RawArgs
impl StructuralPartialEq for RawArgs
Auto Trait Implementations§
impl Freeze for RawArgs
impl RefUnwindSafe for RawArgs
impl Send for RawArgs
impl Sync for RawArgs
impl Unpin for RawArgs
impl UnsafeUnpin for RawArgs
impl UnwindSafe for RawArgs
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