pub struct SensorUnits {
pub rate: Option<RateUnit>,
pub modifier: Option<ModifierUnit>,
pub is_percentage: bool,
pub base_unit: Unit,
}Fields§
§rate: Option<RateUnit>§modifier: Option<ModifierUnit>§is_percentage: bool§base_unit: UnitImplementations§
Trait Implementations§
Source§impl Clone for SensorUnits
impl Clone for SensorUnits
Source§fn clone(&self) -> SensorUnits
fn clone(&self) -> SensorUnits
Returns a duplicate 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 SensorUnits
impl Debug for SensorUnits
impl Copy for SensorUnits
Auto Trait Implementations§
impl Freeze for SensorUnits
impl RefUnwindSafe for SensorUnits
impl Send for SensorUnits
impl Sync for SensorUnits
impl Unpin for SensorUnits
impl UnwindSafe for SensorUnits
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