SampleDelta

Trait SampleDelta 

Source
pub trait SampleDelta: Copy + Default {
    // Required method
    fn sample_delta(self, after: Self) -> Option<Self>;
}
Expand description

This trait is being used to calculate sample amplitude differences (∆).

Required Methods§

Source

fn sample_delta(self, after: Self) -> Option<Self>

Returns the difference (if any) between after and self (before).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SampleDelta for f32

Source§

fn sample_delta(self, after: f32) -> Option<f32>

Source§

impl SampleDelta for i16

Source§

fn sample_delta(self, after: i16) -> Option<i16>

Source§

impl SampleDelta for i32

Source§

fn sample_delta(self, after: i32) -> Option<i32>

Implementors§