pub struct Scale {
pub id: u8,
pub label: &'static str,
pub unit: &'static str,
}Expand description
A scale (unit) of a sensor or meter type.
Fields§
§id: u8Scale id.
label: &'static strName.
unit: &'static strUnit symbol (empty when unitless).
Trait Implementations§
impl Copy for Scale
impl Eq for Scale
impl StructuralPartialEq for Scale
Auto Trait Implementations§
impl Freeze for Scale
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnsafeUnpin for Scale
impl UnwindSafe for Scale
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