pub enum UnitRef {
Show 14 variants
AreaUnit(AreaUnitId),
ContextDependentUnit(ContextDependentUnitId),
ConversionBasedUnit(ConversionBasedUnitId),
DerivedUnit(DerivedUnitId),
LengthUnit(LengthUnitId),
MassUnit(MassUnitId),
NamedUnit(NamedUnitId),
PlaneAngleUnit(PlaneAngleUnitId),
RatioUnit(RatioUnitId),
SiUnit(SiUnitId),
SolidAngleUnit(SolidAngleUnitId),
TimeUnit(TimeUnitId),
VolumeUnit(VolumeUnitId),
Complex(ComplexUnitId),
}Variants§
AreaUnit(AreaUnitId)
ContextDependentUnit(ContextDependentUnitId)
ConversionBasedUnit(ConversionBasedUnitId)
DerivedUnit(DerivedUnitId)
LengthUnit(LengthUnitId)
MassUnit(MassUnitId)
NamedUnit(NamedUnitId)
PlaneAngleUnit(PlaneAngleUnitId)
RatioUnit(RatioUnitId)
SiUnit(SiUnitId)
SolidAngleUnit(SolidAngleUnitId)
TimeUnit(TimeUnitId)
VolumeUnit(VolumeUnitId)
Complex(ComplexUnitId)
Implementations§
Source§impl UnitRef
impl UnitRef
pub fn resolve<'m>(&self, model: &'m StepModel) -> UnitRefView<'m>
pub fn entity_key(&self) -> EntityKey
Trait Implementations§
impl StructuralPartialEq for UnitRef
Auto Trait Implementations§
impl Freeze for UnitRef
impl RefUnwindSafe for UnitRef
impl Send for UnitRef
impl Sync for UnitRef
impl Unpin for UnitRef
impl UnsafeUnpin for UnitRef
impl UnwindSafe for UnitRef
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