pub trait FloatSample: Sample<Signed = Self, Float = Self> + SignedSample + Mul<Output = Self> + Div<Output = Self> + Duplex<f32> + Duplex<f64> {
    const IDENTITY: Self;

    // Required method
    fn sample_sqrt(self) -> Self;
}
Expand description

Sample format types represented as floating point numbers.

Samples often need to be converted to some mutual FloatSample type for signal scaling and modulation.

Required Associated Constants§

source

const IDENTITY: Self

Represents the multiplicative identity of the floating point signal.

Required Methods§

source

fn sample_sqrt(self) -> Self

Calculate the square root of Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FloatSample for f32

source§

const IDENTITY: Self = 1f32

source§

fn sample_sqrt(self) -> Self

source§

impl FloatSample for f64

source§

const IDENTITY: Self = 1f64

source§

fn sample_sqrt(self) -> Self

Implementors§