DbMag

Trait DbMag 

Source
pub trait DbMag {
    // Required methods
    fn mixed_mag2db(&self) -> Self;
    fn mixed_db2mag(&self) -> Self;
}

Required Methods§

Source

fn mixed_mag2db(&self) -> Self

Convert between magnitude in linear scale and Decibel (dB).

Source

fn mixed_db2mag(&self) -> Self

Convert between Decibell (dB) and linear scale magnitude.

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

Source§

fn mixed_mag2db(&self) -> Self

Source§

fn mixed_db2mag(&self) -> Self

Source§

impl DbMag for f64

Source§

fn mixed_mag2db(&self) -> Self

Source§

fn mixed_db2mag(&self) -> Self

Implementors§