[][src]Struct sample::signal::Gen

pub struct Gen<G, F> { /* fields omitted */ }

A signal that generates frames using the given function.

Trait Implementations

impl<G: Clone, F: Clone> Clone for Gen<G, F>[src]

impl<G, F> Signal for Gen<G, F> where
    G: Fn() -> F,
    F: Frame
[src]

type Frame = F

The Frame type returned by the Signal.

Auto Trait Implementations

impl<G, F> RefUnwindSafe for Gen<G, F> where
    F: RefUnwindSafe,
    G: RefUnwindSafe

impl<G, F> Send for Gen<G, F> where
    F: Send,
    G: Send

impl<G, F> Sync for Gen<G, F> where
    F: Sync,
    G: Sync

impl<G, F> Unpin for Gen<G, F> where
    F: Unpin,
    G: Unpin

impl<G, F> UnwindSafe for Gen<G, F> where
    F: UnwindSafe,
    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<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S[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> ToSample<U> for T where
    U: FromSample<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.