[][src]Struct market::StrippingConsumer

pub struct StrippingConsumer<C, P> { /* fields omitted */ }

Consumes parts from a Consumer of composite goods.

Methods

impl<C, P> StrippingConsumer<C, P> where
    C: Consumer,
    P: StripFrom<<C as Consumer>::Good>, 
[src]

pub fn new(consumer: C) -> Self[src]

Creates a new StrippingConsumer

Trait Implementations

impl<C, P> Consumer for StrippingConsumer<C, P> where
    C: Consumer,
    P: StripFrom<<C as Consumer>::Good>, 
[src]

type Good = P

The item being consumed.

type Error = <C as Consumer>::Error

The error when Self is not functional. Read more

impl<C: Debug, P: Debug> Debug for StrippingConsumer<C, P>[src]

Auto Trait Implementations

impl<C, P> RefUnwindSafe for StrippingConsumer<C, P> where
    C: RefUnwindSafe,
    P: RefUnwindSafe

impl<C, P> Send for StrippingConsumer<C, P> where
    C: Send,
    P: Send

impl<C, P> Sync for StrippingConsumer<C, P> where
    C: Sync,
    P: Send

impl<C, P> Unpin for StrippingConsumer<C, P> where
    C: Unpin,
    P: Unpin

impl<C, P> !UnwindSafe for StrippingConsumer<C, P>

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.