Enum ap::Need[][src]

pub enum Need {
    Nothing,
    Argument,
}

Used to specify whether an option is a “stand-alone” flag option (needs no value), or whether it requires an option argument.

Variants

Nothing

Option is stand-alone (no argument required).

Argument

Option needs an argument.

Implementations

impl Need[src]

pub fn new() -> Self[src]

Create a new default requirement for an Arg.

Trait Implementations

impl Clone for Need[src]

impl Copy for Need[src]

impl Debug for Need[src]

impl Default for Need[src]

impl Eq for Need[src]

impl Ord for Need[src]

impl PartialEq<Need> for Need[src]

impl PartialOrd<Need> for Need[src]

impl StructuralEq for Need[src]

impl StructuralPartialEq for Need[src]

Auto Trait Implementations

impl RefUnwindSafe for Need

impl Send for Need

impl Sync for Need

impl Unpin for Need

impl UnwindSafe for Need

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.