#[non_exhaustive]pub enum ColourSource {
StyledItem(EntityId),
PresentationLayer(EntityId),
Material {
material: EntityId,
styled_item: EntityId,
},
MaterialSet {
definition: EntityId,
materials: Vec<EntityId>,
},
}Expand description
How a surface style reached the surface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StyledItem(EntityId)
An IfcStyledItem on the representation item; carries its id.
PresentationLayer(EntityId)
An IfcPresentationLayerWithStyle the item is on; carries its id.
Material
The material’s IfcMaterialDefinitionRepresentation.
Fields
MaterialSet
A material set whose materials all state this colour (#603): the
layer, profile or constituent set (or the usage) the product is made
of. Which one of them paints the product is not stated, so the colour
is neither of theirs alone; a single-material set is
ColourSource::Material. Set by the openbim-ifc facade, which
joins materials to products; StyleIndex itself reads one material.
Trait Implementations§
Source§impl Clone for ColourSource
impl Clone for ColourSource
Source§fn clone(&self) -> ColourSource
fn clone(&self) -> ColourSource
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 moreSource§impl Debug for ColourSource
impl Debug for ColourSource
impl Eq for ColourSource
Source§impl PartialEq for ColourSource
impl PartialEq for ColourSource
impl StructuralPartialEq for ColourSource
Auto Trait Implementations§
impl Freeze for ColourSource
impl RefUnwindSafe for ColourSource
impl Send for ColourSource
impl Sync for ColourSource
impl Unpin for ColourSource
impl UnsafeUnpin for ColourSource
impl UnwindSafe for ColourSource
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