[][src]Struct pipeline_macro::Pipeline

pub struct Pipeline<I, O> {
    pub fun: fn(_: I) -> O,
}

A pipeline

Generic parameters

  • I - Input type
  • O - Ouput type

Fields

fun: fn(_: I) -> O

Methods

impl<I, O> Pipeline<I, O>[src]

pub fn run(&self, input: I) -> O[src]

Run this pipeline

Arguments

  • input - Input for this pipeline

Auto Trait Implementations

impl<I, O> Send for Pipeline<I, O>

impl<I, O> Unpin for Pipeline<I, O>

impl<I, O> Sync for Pipeline<I, O>

impl<I, O> UnwindSafe for Pipeline<I, O>

impl<I, O> RefUnwindSafe for Pipeline<I, O>

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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