Struct sampara::signal::FromFn[][src]

pub struct FromFn<F, G, const N: usize>(_)
where
    F: Frame<N>,
    G: FnMut() -> Option<F>
;

A Signal that yields Frames by calling a closure for each iteration. This closure should return Option<Frame>.

Trait Implementations

impl<F, G, const N: usize> Signal<N> for FromFn<F, G, N> where
    F: Frame<N>,
    G: FnMut() -> Option<F>, 
[src]

type Frame = F

The Frame type returned by this Signal.

Auto Trait Implementations

impl<F, G, const N: usize> RefUnwindSafe for FromFn<F, G, N> where
    G: RefUnwindSafe

impl<F, G, const N: usize> Send for FromFn<F, G, N> where
    G: Send

impl<F, G, const N: usize> Sync for FromFn<F, G, N> where
    G: Sync

impl<F, G, const N: usize> Unpin for FromFn<F, G, N> where
    G: Unpin

impl<F, G, const N: usize> UnwindSafe for FromFn<F, G, N> where
    G: 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, 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.