[][src]Enum normal_map::f64::Mapper

pub enum Mapper {
    Lin(LinearMap),
    Pow(PowerMap),
    Log2(Log2Map),
    Discrete(DiscreteMap),
}

The type of mapping to use

Variants

Linear mapping

Please note if you use Unit::Decibels, then the decibels will be linearly mapped, not the raw amplitude.

Exponential mapping where the normalized value is raised to the supplied exponent.

Please note if you use Unit::Decibels, then the decibels will be linearly mapped, not the raw amplitude.

Log2(Log2Map)

Logarithmic mapping using log2. This is useful for frequency (Hz) values.

Discrete(DiscreteMap)

Discrete isize integer mapping

A supplied enum may be used as well as long as it implements From<isize> + Into<isize> + Copy + Clone.

Trait Implementations

impl Debug for Mapper[src]

Auto Trait Implementations

impl RefUnwindSafe for Mapper

impl Send for Mapper

impl Sync for Mapper

impl Unpin for Mapper

impl UnwindSafe for Mapper

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.