[−][src]Struct market::StrippingProducer
A Producer
of type P
that produces parts stripped from goods of type G
.
Methods
impl<G, P> StrippingProducer<G, P> where
P: Producer,
<P as Producer>::Good: Debug,
[src]
P: Producer,
<P as Producer>::Good: Debug,
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]
P: Producer,
<P as Producer>::Good: Debug,
impl<G, P> Producer for StrippingProducer<G, P> where
P: Producer,
<P as Producer>::Good: StripFrom<G> + Clone + Debug,
<P as Producer>::Error: Debug,
[src]
P: Producer,
<P as Producer>::Good: StripFrom<G> + Clone + Debug,
<P as Producer>::Error: Debug,
type Good = G
The item being produced.
type Error = StripError<<P as Producer>::Error>
The error when Self
is not functional. Read more
fn produce(&self, good: Self::Good) -> Result<Option<Self::Good>, Self::Error>
[src]
fn produce_all(
&self,
goods: Vec<Self::Good>
) -> Result<Vec<Self::Good>, Self::Error>
[src]
&self,
goods: Vec<Self::Good>
) -> Result<Vec<Self::Good>, Self::Error>
fn force(&self, good: Self::Good) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl<G, P> RefUnwindSafe for StrippingProducer<G, P> where
G: RefUnwindSafe,
P: RefUnwindSafe,
G: RefUnwindSafe,
P: RefUnwindSafe,
impl<G, P> Send for StrippingProducer<G, P> where
G: Send,
P: Send,
<P as Producer>::Good: Send,
G: Send,
P: Send,
<P as Producer>::Good: Send,
impl<G, P> Sync for StrippingProducer<G, P> where
G: Sync,
P: Sync,
<P as Producer>::Good: Send,
G: Sync,
P: Sync,
<P as Producer>::Good: Send,
impl<G, P> Unpin for StrippingProducer<G, P> where
G: Unpin,
P: Unpin,
<P as Producer>::Good: Unpin,
G: Unpin,
P: Unpin,
<P as Producer>::Good: Unpin,
impl<G, P> UnwindSafe for StrippingProducer<G, P> where
G: UnwindSafe,
P: UnwindSafe,
G: UnwindSafe,
P: 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>,