#[non_exhaustive]pub struct ColorPoint {
pub color: Hsl,
pub point: Point3,
pub inverted: bool,
}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.color: Hsl§point: Point3§inverted: boolImplementations§
Source§impl ColorPoint
impl ColorPoint
pub fn set_inverted(&mut self, inverted: bool)
pub fn set_postion(&mut self, point: Point3)
pub fn set_hsl(&mut self, hsl: Hsl)
pub fn css_string(&self) -> String
pub fn shift_hue(&mut self, angle: f64)
Trait Implementations§
Source§impl Clone for ColorPoint
impl Clone for ColorPoint
Source§fn clone(&self) -> ColorPoint
fn clone(&self) -> ColorPoint
Returns a duplicate of the value. Read more
1.0.0 · 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 ColorPoint
impl Debug for ColorPoint
Source§impl From<(Point3, bool)> for ColorPoint
impl From<(Point3, bool)> for ColorPoint
impl Copy for ColorPoint
Auto Trait Implementations§
impl Freeze for ColorPoint
impl RefUnwindSafe for ColorPoint
impl Send for ColorPoint
impl Sync for ColorPoint
impl Unpin for ColorPoint
impl UnwindSafe for ColorPoint
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