Struct wlan_common::energy::DecibelMilliWatt
source · pub struct DecibelMilliWatt(pub i8);
Tuple Fields§
§0: i8
Trait Implementations§
source§impl Add for DecibelMilliWatt
impl Add for DecibelMilliWatt
source§impl AddAssign for DecibelMilliWatt
impl AddAssign for DecibelMilliWatt
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl Clone for DecibelMilliWatt
impl Clone for DecibelMilliWatt
source§fn clone(&self) -> DecibelMilliWatt
fn clone(&self) -> DecibelMilliWatt
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecibelMilliWatt
impl Debug for DecibelMilliWatt
source§impl From<DecibelMilliWatt> for FemtoWatt
impl From<DecibelMilliWatt> for FemtoWatt
source§fn from(dbm: DecibelMilliWatt) -> Self
fn from(dbm: DecibelMilliWatt) -> Self
Converts dBm to femtoWatts by approximation.
FemtoWatts are approximated and within a maximum relative error of < 3% for dBm inputs in the range [-100, 48]. Inputs must lay within [-120, 48] dBm.
Resulting femtoWatts are always less than 2^56.
source§impl From<DecibelMilliWatt> for i8
impl From<DecibelMilliWatt> for i8
source§fn from(dbm: DecibelMilliWatt) -> i8
fn from(dbm: DecibelMilliWatt) -> i8
Converts to this type from the input type.
source§impl From<FemtoWatt> for DecibelMilliWatt
impl From<FemtoWatt> for DecibelMilliWatt
source§impl Hash for DecibelMilliWatt
impl Hash for DecibelMilliWatt
source§impl PartialEq for DecibelMilliWatt
impl PartialEq for DecibelMilliWatt
source§fn eq(&self, other: &DecibelMilliWatt) -> bool
fn eq(&self, other: &DecibelMilliWatt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DecibelMilliWatt
impl PartialOrd for DecibelMilliWatt
source§fn partial_cmp(&self, other: &DecibelMilliWatt) -> Option<Ordering>
fn partial_cmp(&self, other: &DecibelMilliWatt) -> Option<Ordering>
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 Sub for DecibelMilliWatt
impl Sub for DecibelMilliWatt
source§impl SubAssign for DecibelMilliWatt
impl SubAssign for DecibelMilliWatt
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for DecibelMilliWatt
impl Eq for DecibelMilliWatt
impl StructuralPartialEq for DecibelMilliWatt
Auto Trait Implementations§
impl Freeze for DecibelMilliWatt
impl RefUnwindSafe for DecibelMilliWatt
impl Send for DecibelMilliWatt
impl Sync for DecibelMilliWatt
impl Unpin for DecibelMilliWatt
impl UnwindSafe for DecibelMilliWatt
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)