[−][src]Struct siraph::Sink
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]
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;
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]
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,
pub 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.
pub 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>,