pub struct ResolvedStyle { /* private fields */ }Expand description
The outcome of resolving an item’s effective presentation style through the direct-assignment-over-layer-style cascade.
Implementations§
Source§impl ResolvedStyle
impl ResolvedStyle
Sourcepub fn source(&self) -> StyleSource
pub fn source(&self) -> StyleSource
Which mechanism produced effective_styles.
Sourcepub fn effective_styles(&self) -> &[EntityId]
pub fn effective_styles(&self) -> &[EntityId]
The styles that actually apply after the cascade: the direct assignment’s styles if one exists, otherwise the union of all covering layer styles.
Sourcepub fn direct_styles(&self) -> &[EntityId]
pub fn direct_styles(&self) -> &[EntityId]
The styles from the unique direct IfcStyledItem, if any; empty
when resolution fell back to layer styles.
Sourcepub fn layer_styles(&self) -> &[(EntityId, Vec<EntityId>)]
pub fn layer_styles(&self) -> &[(EntityId, Vec<EntityId>)]
Every presentation layer assignment covering the item, paired with its (deduplicated) flattened styles, regardless of whether a direct assignment took precedence.
Trait Implementations§
Source§impl Clone for ResolvedStyle
impl Clone for ResolvedStyle
Source§impl Debug for ResolvedStyle
impl Debug for ResolvedStyle
impl Eq for ResolvedStyle
Source§impl PartialEq for ResolvedStyle
impl PartialEq for ResolvedStyle
impl StructuralPartialEq for ResolvedStyle
Auto Trait Implementations§
impl Freeze for ResolvedStyle
impl RefUnwindSafe for ResolvedStyle
impl Send for ResolvedStyle
impl Sync for ResolvedStyle
impl Unpin for ResolvedStyle
impl UnsafeUnpin for ResolvedStyle
impl UnwindSafe for ResolvedStyle
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