[−][src]Struct market::StrippingConsumer
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]
C: Consumer,
P: StripFrom<<C as Consumer>::Good>,
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]
C: Consumer,
P: StripFrom<<C as Consumer>::Good>,
type Good = P
The item being consumed.
type Error = <C as Consumer>::Error
The error when Self
is not functional. Read more
fn consume(&self) -> Result<Option<Self::Good>, Self::Error>
[src]
fn demand(&self) -> Result<Self::Good, Self::Error>
[src]
fn goods(&self) -> GoodsIter<Self> where
Self: Sized,
[src]
Self: Sized,
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,
C: RefUnwindSafe,
P: RefUnwindSafe,
impl<C, P> Send for StrippingConsumer<C, P> where
C: Send,
P: Send,
C: Send,
P: Send,
impl<C, P> Sync for StrippingConsumer<C, P> where
C: Sync,
P: Send,
C: Sync,
P: Send,
impl<C, P> Unpin for StrippingConsumer<C, P> where
C: Unpin,
P: Unpin,
C: Unpin,
P: Unpin,
impl<C, P> !UnwindSafe for StrippingConsumer<C, P>
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>,