Struct sampara::signal::Inspect[][src]

pub struct Inspect<S, F, const N: usize> where
    S: Signal<N>,
    F: FnMut(&S::Frame), 
{ /* fields omitted */ }

Creates a new Signal that calls a function with each Frame, and then yields the Frame.

Trait Implementations

impl<S: Clone, F: Clone, const N: usize> Clone for Inspect<S, F, N> where
    S: Signal<N>,
    F: FnMut(&S::Frame), 
[src]

impl<S, F, const N: usize> Signal<N> for Inspect<S, F, N> where
    S: Signal<N>,
    F: FnMut(&S::Frame), 
[src]

type Frame = S::Frame

The Frame type returned by this Signal.

Auto Trait Implementations

impl<S, F, const N: usize> RefUnwindSafe for Inspect<S, F, N> where
    F: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, F, const N: usize> Send for Inspect<S, F, N> where
    F: Send,
    S: Send

impl<S, F, const N: usize> Sync for Inspect<S, F, N> where
    F: Sync,
    S: Sync

impl<S, F, const N: usize> Unpin for Inspect<S, F, N> where
    F: Unpin,
    S: Unpin

impl<S, F, const N: usize> UnwindSafe for Inspect<S, F, N> where
    F: UnwindSafe,
    S: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.