Struct a2lfile::Unit [−][src]
pub struct Unit {
pub name: String,
pub long_identifier: String,
pub display: String,
pub unit_type: UnitType,
pub ref_unit: Option<RefUnit>,
pub si_exponents: Option<SiExponents>,
pub unit_conversion: Option<UnitConversion>,
// some fields omitted
}
Expand description
Specification of a measurement unit
Specification: 3.5.126
Fields
name: String
long_identifier: String
display: String
unit_type: UnitType
ref_unit: Option<RefUnit>
si_exponents: Option<SiExponents>
unit_conversion: Option<UnitConversion>
Implementations
Trait Implementations
get a reference to the BlockInfo that describes the layout of the a2l object
get a mutable reference to the BlockInfo that describes the layout of the a2l object
reset the location information on the a2l object. It will be treated like a new object when writing a file
reset the reference to an include file on this objct and its children. This causes the object to be written into the output file instead of referenced through /include “filename” Read more
Auto Trait Implementations
impl RefUnwindSafe for Unit
impl UnwindSafe for Unit
Blanket Implementations
Mutably borrows from an owned value. Read more