Struct sampara::signal::Take[][src]

pub struct Take<S, const N: usize> where
    S: Signal<N>, 
{ /* fields omitted */ }

Creates a new Signal that yields the first N Frames of a Signal, and then stops.

Trait Implementations

impl<S: Clone, const N: usize> Clone for Take<S, N> where
    S: Signal<N>, 
[src]

impl<S, const N: usize> Signal<N> for Take<S, N> where
    S: Signal<N>, 
[src]

type Frame = S::Frame

The Frame type returned by this Signal.

Auto Trait Implementations

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

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

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

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

impl<S, const N: usize> UnwindSafe for Take<S, N> where
    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.