[][src]Struct rettle::ingredient::Pour

pub struct Pour {
    pub name: String,
    pub computation: Box<fn(_: Vec<Box<dyn Tea + Send>>, _: &Option<Box<dyn Argument + Send>>) -> Vec<Box<dyn Tea + Send>>>,
    pub params: Option<Box<dyn Argument + Send>>,
}

Ingredient used to send Tea to somewhere else.

Fields

name: Stringcomputation: Box<fn(_: Vec<Box<dyn Tea + Send>>, _: &Option<Box<dyn Argument + Send>>) -> Vec<Box<dyn Tea + Send>>>params: Option<Box<dyn Argument + Send>>

Methods

impl Pour[src]

pub fn get_params(&self) -> &Option<Box<dyn Argument + Send>>[src]

Return params, if any, initialized to this step.

Trait Implementations

impl Ingredient for Pour[src]

impl Sync for Pour[src]

impl Send for Pour[src]

Auto Trait Implementations

impl Unpin for Pour

impl !RefUnwindSafe for Pour

impl !UnwindSafe for Pour

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]