pub enum AttributeValue {
Null,
Derived,
EntityRef(EntityId),
Bool(bool),
Integer(i64),
Float(f64),
String(String),
Enum(String),
List(Vec<AttributeValue>),
TypedValue(String, Vec<AttributeValue>),
}Expand description
Decoded attribute value
Represents any value that can appear in an IFC entity’s attribute list.
Variants§
Null
Null value ($)
Derived
Derived value (*)
EntityRef(EntityId)
Entity reference (#123)
Bool(bool)
Boolean value
Integer(i64)
Integer value
Float(f64)
Floating point value
String(String)
String value
Enum(String)
Enumeration value (.VALUE.)
List(Vec<AttributeValue>)
List of values
TypedValue(String, Vec<AttributeValue>)
Typed value like IFCLABEL(‘text’)
Implementations§
Source§impl AttributeValue
impl AttributeValue
Sourcepub fn as_entity_ref(&self) -> Option<EntityId>
pub fn as_entity_ref(&self) -> Option<EntityId>
Try to get as entity reference
Sourcepub fn as_integer(&self) -> Option<i64>
pub fn as_integer(&self) -> Option<i64>
Try to get as integer
Sourcepub fn as_list(&self) -> Option<&[AttributeValue]>
pub fn as_list(&self) -> Option<&[AttributeValue]>
Try to get as list
Sourcepub fn is_derived(&self) -> bool
pub fn is_derived(&self) -> bool
Check if this is a derived value
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
Returns a duplicate of the value. Read more
1.0.0 · 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 AttributeValue
impl Debug for AttributeValue
Source§impl Default for AttributeValue
impl Default for AttributeValue
Source§fn default() -> AttributeValue
fn default() -> AttributeValue
Returns the “default value” for a type. Read more
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnsafeUnpin for AttributeValue
impl UnwindSafe for AttributeValue
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