Struct gilrs::ff::Envelope [−][src]
pub struct Envelope { pub attack_length: Ticks, pub attack_level: f32, pub fade_length: Ticks, pub fade_level: f32, }
Envelope shaped attenuation(time) function.
Fields
attack_length: Ticks
attack_level: f32
fade_length: Ticks
fade_level: f32
Trait Implementations
impl Copy for Envelope
[src]
impl Copy for Envelope
impl Clone for Envelope
[src]
impl Clone for Envelope
fn clone(&self) -> Envelope
[src]
fn clone(&self) -> Envelope
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Envelope
[src]
impl PartialEq for Envelope
fn eq(&self, other: &Envelope) -> bool
[src]
fn eq(&self, other: &Envelope) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Envelope) -> bool
[src]
fn ne(&self, other: &Envelope) -> bool
This method tests for !=
.
impl Debug for Envelope
[src]
impl Debug for Envelope
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Envelope
[src]
impl Default for Envelope