[][src]Struct spirit::Empty

pub struct Empty {}

A struct that may be used when either configuration or command line options are not needed.

When the application doesn't need the configuration (in excess of the automatic part provided by this library) or it doesn't need any command line options of its own, this struct can be used to plug the type parameter.

Other places (eg. around extensions) may use this to plug a type parameter that isn't needed, do nothing or something like that.

Trait Implementations

impl Clone for Empty[src]

impl Copy for Empty[src]

impl Debug for Empty[src]

impl Default for Empty[src]

impl<'de> Deserialize<'de> for Empty[src]

impl Eq for Empty[src]

impl Hash for Empty[src]

impl Ord for Empty[src]

impl PartialEq<Empty> for Empty[src]

impl PartialOrd<Empty> for Empty[src]

impl Serialize for Empty[src]

impl StructDoc for Empty[src]

impl StructOpt for Empty[src]

impl StructOptInternal for Empty[src]

impl StructuralEq for Empty[src]

impl StructuralPartialEq for Empty[src]

Auto Trait Implementations

impl RefUnwindSafe for Empty

impl Send for Empty

impl Sync for Empty

impl Unpin for Empty

impl UnwindSafe for Empty

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.