pub struct ElementAttributes<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub placement: Option<EntityId>,
pub representation: Option<EntityId>,
pub tag: Option<&'a str>,
}Expand description
Optional descriptive attributes shared by every distribution element.
Grouped into a struct because all six are optional and positional
arguments at that count invite silent transposition – name and
description are both Option<&str> and swapping them compiles.
Fields§
§name: Option<&'a str>Name.
description: Option<&'a str>Description.
placement: Option<EntityId>ObjectPlacement, usually an IfcLocalPlacement.
representation: Option<EntityId>Representation, an IfcProductDefinitionShape.
tag: Option<&'a str>Tag, the authoring tool’s own identifier.
Trait Implementations§
Source§impl<'a> Clone for ElementAttributes<'a>
impl<'a> Clone for ElementAttributes<'a>
Source§fn clone(&self) -> ElementAttributes<'a>
fn clone(&self) -> ElementAttributes<'a>
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 moreimpl<'a> Copy for ElementAttributes<'a>
Source§impl<'a> Debug for ElementAttributes<'a>
impl<'a> Debug for ElementAttributes<'a>
Source§impl<'a> Default for ElementAttributes<'a>
impl<'a> Default for ElementAttributes<'a>
Source§fn default() -> ElementAttributes<'a>
fn default() -> ElementAttributes<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ElementAttributes<'a>
impl<'a> RefUnwindSafe for ElementAttributes<'a>
impl<'a> Send for ElementAttributes<'a>
impl<'a> Sync for ElementAttributes<'a>
impl<'a> Unpin for ElementAttributes<'a>
impl<'a> UnsafeUnpin for ElementAttributes<'a>
impl<'a> UnwindSafe for ElementAttributes<'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