pub struct ColourRgb<'m, 's> { /* private fields */ }Expand description
Borrowed projection of IfcColourRgb: a normalized red/green/blue colour.
Implementations§
Source§impl<'m, 's> ColourRgb<'m, 's>
impl<'m, 's> ColourRgb<'m, 's>
Sourcepub fn name(&self) -> StyleResult<Option<&'m str>>
pub fn name(&self) -> StyleResult<Option<&'m str>>
The Name attribute, when authored.
Sourcepub fn red(&self) -> StyleResult<f64>
pub fn red(&self) -> StyleResult<f64>
The Red component, normalized to [0, 1].
Sourcepub fn green(&self) -> StyleResult<f64>
pub fn green(&self) -> StyleResult<f64>
The Green component, normalized to [0, 1].
Sourcepub fn blue(&self) -> StyleResult<f64>
pub fn blue(&self) -> StyleResult<f64>
The Blue component, normalized to [0, 1].
Sourcepub fn channels(&self) -> StyleResult<[f64; 3]>
pub fn channels(&self) -> StyleResult<[f64; 3]>
The [Red, Green, Blue] components as one array.
Trait Implementations§
Auto Trait Implementations§
impl<'m, 's> !RefUnwindSafe for ColourRgb<'m, 's>
impl<'m, 's> !UnwindSafe for ColourRgb<'m, 's>
impl<'m, 's> Freeze for ColourRgb<'m, 's>
impl<'m, 's> Send for ColourRgb<'m, 's>
impl<'m, 's> Sync for ColourRgb<'m, 's>
impl<'m, 's> Unpin for ColourRgb<'m, 's>
impl<'m, 's> UnsafeUnpin for ColourRgb<'m, 's>
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