#[non_exhaustive]pub struct LightSourceDraft<'a> {
pub name: Option<&'a str>,
pub light_colour: EntityId,
pub ambient_intensity: Option<f64>,
pub intensity: Option<f64>,
}Expand description
The four attributes every IfcLightSource carries.
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.name: Option<&'a str>Name.
light_colour: EntityIdLightColour: an IfcColourRgb. Required.
ambient_intensity: Option<f64>AmbientIntensity, a normalised ratio.
intensity: Option<f64>Intensity, a normalised ratio.
Implementations§
Source§impl<'a> LightSourceDraft<'a>
impl<'a> LightSourceDraft<'a>
Trait Implementations§
Source§impl<'a> Clone for LightSourceDraft<'a>
impl<'a> Clone for LightSourceDraft<'a>
Source§fn clone(&self) -> LightSourceDraft<'a>
fn clone(&self) -> LightSourceDraft<'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 LightSourceDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for LightSourceDraft<'a>
impl<'a> RefUnwindSafe for LightSourceDraft<'a>
impl<'a> Send for LightSourceDraft<'a>
impl<'a> Sync for LightSourceDraft<'a>
impl<'a> Unpin for LightSourceDraft<'a>
impl<'a> UnsafeUnpin for LightSourceDraft<'a>
impl<'a> UnwindSafe for LightSourceDraft<'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