[][src]Struct spirit_cfg_helpers::Opts

pub struct Opts { /* fields omitted */ }

A combination of the CfgDump and CfgHelp fragments.

This is simply a combination of both fragments, providing the same options and functionality. Usually one wants to use both. This saves a bit of code, as only one field and one extension needs to be registered.

Requirements

For this to work, the configuration structure needs to implement both Serialize and StructDoc.

Implementations

impl Opts[src]

pub fn extension<O, C, F>(extract: F) -> impl Extension<Builder<O, C>> where
    F: Fn(&O) -> &Self + Send + Sync + 'static,
    O: Debug + StructOpt + Send + Sync + 'static,
    C: DeserializeOwned + Serialize + StructDoc + Send + Sync + 'static, 
[src]

The helper to be registered within an Extensible.

Trait Implementations

impl Clone for Opts[src]

impl Debug for Opts[src]

impl Default for Opts[src]

impl StructOpt for Opts[src]

impl StructOptInternal for Opts[src]

Auto Trait Implementations

impl RefUnwindSafe for Opts

impl Send for Opts

impl Sync for Opts

impl Unpin for Opts

impl UnwindSafe for Opts

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> IntoResult<T> for 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.