pub struct StyledItem<'m, 's> { /* private fields */ }Expand description
Borrowed projection of IfcStyledItem: binds one or more presentation
styles to a single IfcRepresentationItem.
Implementations§
Source§impl<'m, 's> StyledItem<'m, 's>
impl<'m, 's> StyledItem<'m, 's>
Sourcepub fn item(&self) -> StyleResult<Option<EntityId>>
pub fn item(&self) -> StyleResult<Option<EntityId>>
The Item reference to the styled IfcRepresentationItem. None
for an IfcStyledItem that only carries a Name with no target item.
Sourcepub fn styles(&self) -> StyleResult<Vec<EntityId>>
pub fn styles(&self) -> StyleResult<Vec<EntityId>>
The Styles select. IFC2x3 requires exactly one
IfcPresentationStyleAssignment member; IFC4, IFC4X1 and IFC4X2 also
permit direct IfcPresentationStyle references alongside the legacy
wrapper (IfcStyleAssignmentSelect); IFC4X3, and a schema of no
recognised release, accept only direct IfcPresentationStyle
references. A recognised release not listed here is refused with
StyleError::UnsupportedSchema rather than read by a neighbour’s
rule.
Sourcepub fn name(&self) -> StyleResult<Option<&'m str>>
pub fn name(&self) -> StyleResult<Option<&'m str>>
The Name attribute, when authored.
Trait Implementations§
Source§impl<'m, 's> Clone for StyledItem<'m, 's>
impl<'m, 's> Clone for StyledItem<'m, 's>
Source§fn clone(&self) -> StyledItem<'m, 's>
fn clone(&self) -> StyledItem<'m, 's>
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<'m, 's> Copy for StyledItem<'m, 's>
Auto Trait Implementations§
impl<'m, 's> !RefUnwindSafe for StyledItem<'m, 's>
impl<'m, 's> !UnwindSafe for StyledItem<'m, 's>
impl<'m, 's> Freeze for StyledItem<'m, 's>
impl<'m, 's> Send for StyledItem<'m, 's>
impl<'m, 's> Sync for StyledItem<'m, 's>
impl<'m, 's> Unpin for StyledItem<'m, 's>
impl<'m, 's> UnsafeUnpin for StyledItem<'m, 's>
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