pub struct ColorCurve(pub KeyDataMap<Position, Color>);Expand description
A color-valued curve mapping Position → Color.
Used for multi-stop color gradients.
Tuple Fields§
§0: KeyDataMap<Position, Color>Implementations§
Source§impl ColorCurve
impl ColorCurve
Trait Implementations§
Source§impl Clone for ColorCurve
impl Clone for ColorCurve
Source§fn clone(&self) -> ColorCurve
fn clone(&self) -> ColorCurve
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 DataTypeOps for ColorCurve
impl DataTypeOps for ColorCurve
Source§impl Debug for ColorCurve
impl Debug for ColorCurve
Source§impl Hash for ColorCurve
impl Hash for ColorCurve
Source§impl PartialEq for ColorCurve
impl PartialEq for ColorCurve
Source§impl TryFrom<&Value> for ColorCurve
impl TryFrom<&Value> for ColorCurve
Source§impl TryFrom<Value> for ColorCurve
impl TryFrom<Value> for ColorCurve
impl Eq for ColorCurve
Available on crate feature
curves only.impl StructuralPartialEq for ColorCurve
Auto Trait Implementations§
impl Freeze for ColorCurve
impl RefUnwindSafe for ColorCurve
impl Send for ColorCurve
impl Sync for ColorCurve
impl Unpin for ColorCurve
impl UnsafeUnpin for ColorCurve
impl UnwindSafe for ColorCurve
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more