pub struct MilliBel(pub i64);
Expand description
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.
Tuple Fields§
§0: i64
Implementations§
Methods from Deref<Target = i64>§
pub const MIN: i64 = -9_223_372_036_854_775_808i64
pub const MAX: i64 = 9_223_372_036_854_775_807i64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl AddAssign for MilliBel
impl AddAssign for MilliBel
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl Ord for MilliBel
impl Ord for MilliBel
source§impl PartialEq for MilliBel
impl PartialEq for MilliBel
source§impl PartialOrd for MilliBel
impl PartialOrd for MilliBel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign for MilliBel
impl SubAssign for MilliBel
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for MilliBel
impl Eq for MilliBel
impl StructuralEq for MilliBel
impl StructuralPartialEq for MilliBel
Auto Trait Implementations§
impl RefUnwindSafe for MilliBel
impl Send for MilliBel
impl Sync for MilliBel
impl Unpin for MilliBel
impl UnwindSafe for MilliBel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more