Struct dsp::signal::Rate [] [src]

pub struct Rate {
    // some fields omitted
}

The rate at which phrase a Signal is sampled.

Methods

impl Rate

fn const_hz(self, hz: f64) -> ConstHz

Create a ConstHz iterator which consistently yields "hz / rate".

fn hz<I>(self, init: f64, hz: I) -> Hz<I> where I: Iterator<Item=f64>

Create a variable hz some iterator that yields hz and an initial hz.

The Hz iterator yields phase step sizes equal to "hz / rate".

Trait Implementations

Derived Implementations

impl PartialEq<Rate> for Rate

fn eq(&self, __arg_0: &Rate) -> bool

fn ne(&self, __arg_0: &Rate) -> bool

impl Debug for Rate

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Clone for Rate

fn clone(&self) -> Rate

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Rate