pub enum LaunchValueShape {
Flag,
Text,
}Expand description
What one launch argument consumes from argv.
The two shapes are what a parser actually distinguishes on the command line:
an option that stands alone, and one that consumes the argv token after it.
A value parser then narrows that token to an identity, a path, or a
duration, which is decode-side narrowing rather than shape - exactly as a
wire type’s try_from narrows what decodes without changing what is
written.
Variants§
Trait Implementations§
Source§impl Clone for LaunchValueShape
impl Clone for LaunchValueShape
Source§fn clone(&self) -> LaunchValueShape
fn clone(&self) -> LaunchValueShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LaunchValueShape
Source§impl Debug for LaunchValueShape
impl Debug for LaunchValueShape
impl Eq for LaunchValueShape
Source§impl PartialEq for LaunchValueShape
impl PartialEq for LaunchValueShape
impl StructuralPartialEq for LaunchValueShape
Auto Trait Implementations§
impl Freeze for LaunchValueShape
impl RefUnwindSafe for LaunchValueShape
impl Send for LaunchValueShape
impl Sync for LaunchValueShape
impl Unpin for LaunchValueShape
impl UnsafeUnpin for LaunchValueShape
impl UnwindSafe for LaunchValueShape
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