pub struct Argument(/* private fields */);Expand description
Text appended to the command line: not empty and without a NUL.
Implementations§
Source§impl Argument
impl Argument
Sourcepub fn new(text: impl Into<String>) -> Result<Self, FieldError>
pub fn new(text: impl Into<String>) -> Result<Self, FieldError>
text as an argument.
§Errors
FieldError::EmptyArgument for an empty text,
FieldError::Nul for one with a NUL.
Trait Implementations§
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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