[][src]Enum normal_map::MapperF32

pub enum MapperF32 {
    Lin(LinearMapF32),
    Pow(PowerMapF32),
    Log2(Log2MapF32),
    Discrete(DiscreteMapF32),
}

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.

Logarithmic mapping using log2

Discrete(DiscreteMapF32)

Discrete isize integer mapping

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

Auto Trait Implementations

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.