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§
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 PartialOrd for MilliBel
impl PartialOrd for MilliBel
Source§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 StructuralPartialEq for MilliBel
Auto Trait Implementations§
impl Freeze for MilliBel
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