[][src]Struct dasp::signal::window::Window

pub struct Window<F, W> where
    F: Frame,
    W: Window<f64, Output = f64>, 
{ pub phase: Phase<ConstHz>, // some fields omitted }

A Signal type that for every yielded phase, yields the amplitude across the window::Type for that phase.

Required Features

  • When using dasp_signal, this item requires the window feature to be enabled.
  • When using dasp, this item requires the signal-window feature to be enabled.

Fields

phase: Phase<ConstHz>

Yields phase stepped at a constant rate to be passed to the window function W.

Implementations

impl<F, W> Window<F, W> where
    F: Frame,
    W: Window<f64, Output = f64>, 
[src]

pub fn new(len: usize) -> Window<F, W>[src]

Construct a new Window with the given length as a number of frames.

Required Features

  • When using dasp_signal, this item requires the window feature to be enabled.
  • When using dasp, this item requires the signal-window feature to be enabled.

Trait Implementations

impl<F, W> Clone for Window<F, W> where
    F: Clone + Frame,
    W: Clone + Window<f64, Output = f64>, 
[src]

impl<F, W> Iterator for Window<F, W> where
    F: Frame,
    W: Window<f64, Output = f64>, 
[src]

type Item = F

The type of the elements being iterated over.

Auto Trait Implementations

impl<F, W> RefUnwindSafe for Window<F, W> where
    F: RefUnwindSafe,
    W: RefUnwindSafe

impl<F, W> Send for Window<F, W> where
    F: Send,
    W: Send

impl<F, W> Sync for Window<F, W> where
    F: Sync,
    W: Sync

impl<F, W> Unpin for Window<F, W> where
    F: Unpin,
    W: Unpin

impl<F, W> UnwindSafe for Window<F, W> where
    F: UnwindSafe,
    W: 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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.