pub enum SizeValue<'a> {
Descriptive(&'a str),
Length(f64),
PositiveLength(f64),
Ratio(f64),
NormalisedRatio(f64),
PositiveRatio(f64),
}Expand description
A resolved IfcSizeSelect value.
The select admits six measure types, and a bare real is ambiguous between them. The caller names which one it means so the value is written typed rather than guessed.
Variants§
Descriptive(&'a str)
IfcDescriptiveMeasure: a word such as ‘small’.
Length(f64)
IfcLengthMeasure: any finite length.
PositiveLength(f64)
IfcPositiveLengthMeasure: a length above zero.
Ratio(f64)
IfcRatioMeasure: any finite ratio.
NormalisedRatio(f64)
IfcNormalisedRatioMeasure: a ratio within 0 to 1.
PositiveRatio(f64)
IfcPositiveRatioMeasure: a ratio above zero.
Trait Implementations§
impl<'a> Copy for SizeValue<'a>
impl<'a> StructuralPartialEq for SizeValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for SizeValue<'a>
impl<'a> RefUnwindSafe for SizeValue<'a>
impl<'a> Send for SizeValue<'a>
impl<'a> Sync for SizeValue<'a>
impl<'a> Unpin for SizeValue<'a>
impl<'a> UnsafeUnpin for SizeValue<'a>
impl<'a> UnwindSafe for SizeValue<'a>
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