[][src]Struct market::StrippingProducer

pub struct StrippingProducer<G, P> where
    P: Producer,
    <P as Producer>::Good: Debug
{ /* fields omitted */ }

A Producer of type P that produces parts stripped from goods of type G.

Implementations

impl<G, P> StrippingProducer<G, P> where
    P: Producer,
    <P as Producer>::Good: Debug
[src]

pub fn new(producer: P) -> Self[src]

Creates a new StrippingProducer.

Trait Implementations

impl<G: Debug, P: Debug> Debug for StrippingProducer<G, P> where
    P: Producer,
    <P as Producer>::Good: Debug
[src]

impl<G, P> Producer for StrippingProducer<G, P> where
    P: Producer,
    G: Debug + Display,
    <P as Producer>::Good: StripFrom<G> + Clone + Debug,
    <P as Producer>::Failure: Error
[src]

type Good = G

The type of the item being produced.

type Failure = <P as Producer>::Failure

The type of the error that could be thrown during production.

Auto Trait Implementations

impl<G, P> !RefUnwindSafe for StrippingProducer<G, P>

impl<G, P> Send for StrippingProducer<G, P> where
    G: Send,
    P: Send,
    <P as Producer>::Good: Send

impl<G, P> !Sync for StrippingProducer<G, P>

impl<G, P> Unpin for StrippingProducer<G, P> where
    G: Unpin,
    P: Unpin,
    <P as Producer>::Good: Unpin

impl<G, P> UnwindSafe for StrippingProducer<G, P> where
    G: UnwindSafe,
    P: UnwindSafe,
    <P as Producer>::Good: 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.