#[non_exhaustive]pub struct SurfaceColour {
pub rgb: [f64; 3],
pub transparency: Option<f64>,
pub surface_style: EntityId,
pub source: ColourSource,
}Expand description
The colour a surface is painted with, and where it came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rgb: [f64; 3]SurfaceColour: red, green and blue, each in [0, 1].
transparency: Option<f64>Transparency in [0, 1], 0 opaque. None when the file states
none, which the standard reads as opaque; IFC2X3 states it on
IfcSurfaceStyleRendering only.
surface_style: EntityIdThe IfcSurfaceStyle the colour is read from.
source: ColourSourceWhere the style was assigned.
Trait Implementations§
Source§impl Clone for SurfaceColour
impl Clone for SurfaceColour
Source§fn clone(&self) -> SurfaceColour
fn clone(&self) -> SurfaceColour
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 SurfaceColour
impl Debug for SurfaceColour
Source§impl PartialEq for SurfaceColour
impl PartialEq for SurfaceColour
impl StructuralPartialEq for SurfaceColour
Auto Trait Implementations§
impl Freeze for SurfaceColour
impl RefUnwindSafe for SurfaceColour
impl Send for SurfaceColour
impl Sync for SurfaceColour
impl Unpin for SurfaceColour
impl UnsafeUnpin for SurfaceColour
impl UnwindSafe for SurfaceColour
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