[][src]Struct pflag::Slice

pub struct Slice<T> { /* fields omitted */ }

Slice is used for creating multi-valued flags.

Implementations

impl<T> Slice<T>[src]

pub fn new() -> Self[src]

Constructs a new, empty Slice. Do not use this constructor for setting defaults. Instead, use the provided from method.

pub fn with_capacity(capacity: usize) -> Self[src]

Constructs a new, empty Slice with the specified capacity. Do not use this constructor for setting defaults. Instead, use the provided from method.

pub fn len(&self) -> usize[src]

Returns the number of elements in the slice.

Trait Implementations

impl<T: Debug> Debug for Slice<T>[src]

impl<T: Default> Default for Slice<T>[src]

impl<T, V: Into<Vec<T>>> From<V> for Slice<T>[src]

fn from(v: V) -> Self[src]

Constructs a Slice from anything a Vec can be constructed from. This method should be used anytime you desire default values to be set.

impl<E, T> FromStr for Slice<T> where
    E: Error + 'static,
    T: FromStr<Err = E>, 
[src]

type Err = T::Err

The associated error which can be returned from parsing.

impl<E, T> Value for Slice<T> where
    E: Error + 'static,
    T: ToString + FromStr<Err = E>, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Slice<T> where
    T: RefUnwindSafe

impl<T> Send for Slice<T> where
    T: Send

impl<T> Sync for Slice<T> where
    T: Sync

impl<T> Unpin for Slice<T> where
    T: Unpin

impl<T> UnwindSafe for Slice<T> where
    T: UnwindSafe

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, 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.