[][src]Struct siraph::Sink

pub struct Sink<'a, Ctx, T> { /* fields omitted */ }

Implementations

impl<'a, Ctx, T> Sink<'a, Ctx, T>[src]

pub fn next(&mut self, ctx: &Ctx) -> Option<T>[src]

Gets the next item produced by the graph.

pub fn reset(&mut self)[src]

Resets all node used by this sink.

pub fn with_ctx<F: FnMut() -> &'a Ctx>(
    self,
    get_ctx: F
) -> SinkWithCtx<'a, Ctx, T, F>

Notable traits for SinkWithCtx<'a, Ctx, T, F>

impl<'a, Ctx, T, F> Iterator for SinkWithCtx<'a, Ctx, T, F> where
    F: FnMut() -> &'a Ctx, 
type Item = T;
[src]

Constructs a SinkWithCtx using the given function.

Auto Trait Implementations

impl<'a, Ctx, T> !RefUnwindSafe for Sink<'a, Ctx, T>[src]

impl<'a, Ctx, T> !Send for Sink<'a, Ctx, T>[src]

impl<'a, Ctx, T> !Sync for Sink<'a, Ctx, T>[src]

impl<'a, Ctx, T> Unpin for Sink<'a, Ctx, T>[src]

impl<'a, Ctx, T> !UnwindSafe for Sink<'a, Ctx, T>[src]

Blanket Implementations

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

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

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

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.