#[non_exhaustive]pub struct ColourRgbDraft<'a> {
pub name: Option<&'a str>,
pub red: f64,
pub green: f64,
pub blue: f64,
}Expand description
Draft input for create_colour_rgb: the writable attributes of a new
IfcColourRgb.
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>The Name attribute, when supplied.
red: f64The Red channel; must be a finite value in [0, 1].
green: f64The Green channel; must be a finite value in [0, 1].
blue: f64The Blue channel; must be a finite value in [0, 1].
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ColourRgbDraft<'a>
impl<'a> Clone for ColourRgbDraft<'a>
Source§fn clone(&self) -> ColourRgbDraft<'a>
fn clone(&self) -> ColourRgbDraft<'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 ColourRgbDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColourRgbDraft<'a>
impl<'a> RefUnwindSafe for ColourRgbDraft<'a>
impl<'a> Send for ColourRgbDraft<'a>
impl<'a> Sync for ColourRgbDraft<'a>
impl<'a> Unpin for ColourRgbDraft<'a>
impl<'a> UnsafeUnpin for ColourRgbDraft<'a>
impl<'a> UnwindSafe for ColourRgbDraft<'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