Struct sampara::signal::Map[][src]

pub struct Map<S, F, M, const N: usize, const NF: usize> where
    S: Signal<N>,
    F: Frame<NF>,
    M: FnMut(S::Frame) -> F, 
{ /* fields omitted */ }

Maps a function to each Frame from a Signal and yields a new Frame.

Trait Implementations

impl<S: Clone, F: Clone, M: Clone, const N: usize, const NF: usize> Clone for Map<S, F, M, N, NF> where
    S: Signal<N>,
    F: Frame<NF>,
    M: FnMut(S::Frame) -> F, 
[src]

impl<S, F, M, const N: usize, const NF: usize> Signal<NF> for Map<S, F, M, N, NF> where
    S: Signal<N>,
    F: Frame<NF>,
    M: FnMut(S::Frame) -> F, 
[src]

type Frame = F

The Frame type returned by this Signal.

Auto Trait Implementations

impl<S, F, M, const N: usize, const NF: usize> RefUnwindSafe for Map<S, F, M, N, NF> where
    M: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, F, M, const N: usize, const NF: usize> Send for Map<S, F, M, N, NF> where
    M: Send,
    S: Send

impl<S, F, M, const N: usize, const NF: usize> Sync for Map<S, F, M, N, NF> where
    M: Sync,
    S: Sync

impl<S, F, M, const N: usize, const NF: usize> Unpin for Map<S, F, M, N, NF> where
    M: Unpin,
    S: Unpin

impl<S, F, M, const N: usize, const NF: usize> UnwindSafe for Map<S, F, M, N, NF> where
    M: 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.