pub struct Unit {
pub unit_id: UnitId,
pub unit_family_id: UnitFamilyId,
pub unit_code_text_index: TextIndex,
pub unit_text_text_index: TextIndex,
}Expand description
A physical unit.
Fields§
§unit_id: UnitIdThe numeric ID of the Unit.
unit_family_id: UnitFamilyIdThe numeric ID of the UnitFamily.
unit_code_text_index: TextIndexThe TextIndex of the unit’s machine-readable name.
unit_text_text_index: TextIndexThe TextIndex of the unit’s human-readable name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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