pub enum Scalar {
Bool(bool),
LogicalUnknown,
Integer(i64),
Real(f64),
Text(Arc<str>),
Enum(Arc<str>),
Binary(Arc<str>),
}Expand description
The scalar payload of a property value.
Mirrors the STEP literal forms IfcValue can bottom out in. Real and
Integer stay distinct because IfcCountMeasure is an integer count and
silently widening it to f64 invites 2.9999999 counts.
Variants§
Bool(bool)
.T. / .F.
LogicalUnknown
.U. – the third STEP boolean state, distinct from absent.
Integer(i64)
An integer literal.
Real(f64)
A real literal.
Text(Arc<str>)
A quoted string.
Enum(Arc<str>)
An unquoted enumeration constant.
Binary(Arc<str>)
A binary literal.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnsafeUnpin for Scalar
impl UnwindSafe for Scalar
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