[][src]Struct market::ComposingConsumer

pub struct ComposingConsumer<C, G> where
    C: Consumer,
    <C as Consumer>::Good: Debug
{ /* fields omitted */ }

Consumes composite goods of type G from a parts Consumer of type C.

Implementations

impl<C, G> ComposingConsumer<C, G> where
    C: Consumer,
    <C as Consumer>::Good: Debug
[src]

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

Creates a new ComposingConsumer.

Trait Implementations

impl<C, G> Consumer for ComposingConsumer<C, G> where
    C: Consumer,
    G: ComposeFrom<<C as Consumer>::Good>,
    <C as Consumer>::Good: Debug
[src]

type Good = G

The type of the item being consumed.

type Failure = <C as Consumer>::Failure

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

impl<C: Debug, G: Debug> Debug for ComposingConsumer<C, G> where
    C: Consumer,
    <C as Consumer>::Good: Debug
[src]

Auto Trait Implementations

impl<C, G> !RefUnwindSafe for ComposingConsumer<C, G>

impl<C, G> Send for ComposingConsumer<C, G> where
    C: Send,
    G: Send,
    <C as Consumer>::Good: Send

impl<C, G> !Sync for ComposingConsumer<C, G>

impl<C, G> Unpin for ComposingConsumer<C, G> where
    C: Unpin,
    G: Unpin,
    <C as Consumer>::Good: Unpin

impl<C, G> UnwindSafe for ComposingConsumer<C, G> where
    C: UnwindSafe,
    G: UnwindSafe,
    <C as Consumer>::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.