[][src]Struct alsa::mixer::MilliBel

pub struct MilliBel(pub i64);

Wrapper for a mB (millibel) value.

Despite some ALSA functions named "dB", they actually take mB values instead. This is a wrapper type to help with those calculations. Its interior is the actual mB value.

Methods

impl MilliBel[src]

pub fn to_db(self) -> f32[src]

pub fn from_db(db: f32) -> Self[src]

Trait Implementations

impl Clone for MilliBel[src]

impl Copy for MilliBel[src]

impl Eq for MilliBel[src]

impl Ord for MilliBel[src]

impl PartialEq<MilliBel> for MilliBel[src]

impl PartialOrd<MilliBel> for MilliBel[src]

impl Debug for MilliBel[src]

impl Sub<MilliBel> for MilliBel[src]

type Output = MilliBel

The resulting type after applying the - operator.

impl Add<MilliBel> for MilliBel[src]

type Output = MilliBel

The resulting type after applying the + operator.

impl Deref for MilliBel[src]

type Target = i64

The resulting type after dereferencing.

impl Hash for MilliBel[src]

impl StructuralPartialEq for MilliBel[src]

impl StructuralEq for MilliBel[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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