[][src]Struct reaper_medium::Db

pub struct Db(_);

This represents a volume measured in decibel.

Implementations

impl Db[src]

pub const MIN: Db[src]

The minimum possible value (= MINUS_INF).

There's no maximum value because REAPER allows to exceed the "soft maximum" of 12 dB!

pub const NAN: ReaperVolumeValue[src]

The not-a-number volume (f64::NAN = 1.#R dB).

See ReaperVolumeValue::NAN.

pub const MINUS_INF: Db[src]

The negative infinity volume (-1000.0 = -inf dB).

pub const MINUS_150_DB: Db[src]

The "soft minimum" volume (-150.0 dB).

pub const ZERO_DB: Db[src]

The "unaltered" volume (0.0 dB).

pub const TWELVE_DB: Db[src]

The "soft maximum" volume (12.0 dB).

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

Creates a decibel value.

Panics

This function panics if the given value is not within the decibel range supported by REAPER (-1000.0..).

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

Returns the wrapped value.

Trait Implementations

impl Clone for Db[src]

impl Copy for Db[src]

impl Debug for Db[src]

impl Default for Db[src]

impl Display for Db[src]

impl PartialEq<Db> for Db[src]

impl PartialOrd<Db> for Db[src]

impl StructuralPartialEq for Db[src]

Auto Trait Implementations

impl RefUnwindSafe for Db

impl Send for Db

impl Sync for Db

impl Unpin for Db

impl UnwindSafe for Db

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.