pub enum NamedUnitRef {
ContextDependentUnit(ContextDependentUnitId),
ConversionBasedUnit(ConversionBasedUnitId),
LengthUnit(LengthUnitId),
MassUnit(MassUnitId),
NamedUnit(NamedUnitId),
PlaneAngleUnit(PlaneAngleUnitId),
RatioUnit(RatioUnitId),
SiUnit(SiUnitId),
SolidAngleUnit(SolidAngleUnitId),
TimeUnit(TimeUnitId),
Complex(ComplexUnitId),
}Variants§
ContextDependentUnit(ContextDependentUnitId)
ConversionBasedUnit(ConversionBasedUnitId)
LengthUnit(LengthUnitId)
MassUnit(MassUnitId)
NamedUnit(NamedUnitId)
PlaneAngleUnit(PlaneAngleUnitId)
RatioUnit(RatioUnitId)
SiUnit(SiUnitId)
SolidAngleUnit(SolidAngleUnitId)
TimeUnit(TimeUnitId)
Complex(ComplexUnitId)
Implementations§
Source§impl NamedUnitRef
impl NamedUnitRef
pub fn resolve<'m>(&self, model: &'m StepModel) -> NamedUnitRefView<'m>
pub fn entity_key(&self) -> EntityKey
Trait Implementations§
Source§impl Clone for NamedUnitRef
impl Clone for NamedUnitRef
Source§fn clone(&self) -> NamedUnitRef
fn clone(&self) -> NamedUnitRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamedUnitRef
impl Debug for NamedUnitRef
Source§impl PartialEq for NamedUnitRef
impl PartialEq for NamedUnitRef
Source§fn eq(&self, other: &NamedUnitRef) -> bool
fn eq(&self, other: &NamedUnitRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamedUnitRef
Auto Trait Implementations§
impl Freeze for NamedUnitRef
impl RefUnwindSafe for NamedUnitRef
impl Send for NamedUnitRef
impl Sync for NamedUnitRef
impl Unpin for NamedUnitRef
impl UnsafeUnpin for NamedUnitRef
impl UnwindSafe for NamedUnitRef
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