[][src]Struct reaper_medium::ReaperNormalizedFxParamValue

pub struct ReaperNormalizedFxParamValue(_);

This represents a particular value of an FX parameter in "REAPER-normalized" form.

Please note that this value is not normalized in the classical sense of being in the unit interval 0.0..=1.0! It can be very well > 1.0 (e.g. the Wet param of ReaPitch). All this type guarantees is that the value is > 0.0.

Implementations

impl ReaperNormalizedFxParamValue[src]

pub const MIN: ReaperNormalizedFxParamValue[src]

The minimum possible value (0.0).

pub fn new(value: f64) -> ReaperNormalizedFxParamValue[src]

Creates a REAPER-normalized FX parameter value.

Panics

This function panics if the given value is negative.

pub const fn get(&self) -> f64[src]

Returns the wrapped value.

Trait Implementations

impl Clone for ReaperNormalizedFxParamValue[src]

impl Copy for ReaperNormalizedFxParamValue[src]

impl Debug for ReaperNormalizedFxParamValue[src]

impl Default for ReaperNormalizedFxParamValue[src]

impl Display for ReaperNormalizedFxParamValue[src]

impl PartialEq<ReaperNormalizedFxParamValue> for ReaperNormalizedFxParamValue[src]

impl PartialOrd<ReaperNormalizedFxParamValue> for ReaperNormalizedFxParamValue[src]

impl StructuralPartialEq for ReaperNormalizedFxParamValue[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.