[−][src]Struct market::ComposingConsumer
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]
C: Consumer,
<C as Consumer>::Good: Debug,
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]
C: Consumer,
G: ComposeFrom<<C as Consumer>::Good>,
<C as Consumer>::Good: Debug,
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.
fn consume(&self) -> Result<Self::Good, ConsumeError<Self::Failure>>
[src]
fn consume_all(&self) -> Result<Vec<Self::Good>, ConsumeError<Self::Failure>>
[src]
fn demand(&self) -> Result<Self::Good, Self::Failure>
[src]
fn adapt<G, F>(self) -> Adapter<Self, G, F> where
Self: Sized,
[src]
Self: Sized,
impl<C: Debug, G: Debug> Debug for ComposingConsumer<C, G> where
C: Consumer,
<C as Consumer>::Good: Debug,
[src]
C: Consumer,
<C as Consumer>::Good: Debug,
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,
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,
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,
C: UnwindSafe,
G: UnwindSafe,
<C as Consumer>::Good: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,