dasp_sample

Trait SignedSample

Source
pub trait SignedSample:
    Sample<Signed = Self>
    + Add<Output = Self>
    + Sub<Output = Self>
    + Neg<Output = Self> { }
Expand description

Integral and floating-point Sample format types whose equilibrium is at 0.

Samples often need to be converted to some mutual SignedSample type for signal addition.

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 SignedSample for f32

Source§

impl SignedSample for f64

Source§

impl SignedSample for i8

Source§

impl SignedSample for i16

Source§

impl SignedSample for i32

Source§

impl SignedSample for i64

Implementors§