pub enum PointColor {
Uniform(LinearRgba),
Rgb,
Scalar {
min: f32,
max: f32,
map: ColorMap,
},
}Expand description
Color source for point primitives.
Variants§
Uniform(LinearRgba)
One color for every point.
Rgb
Use the primitive’s borrowed RGB columns.
Scalar
Map the primitive’s borrowed scalar column through a color map.
Trait Implementations§
Source§impl Clone for PointColor
impl Clone for PointColor
Source§fn clone(&self) -> PointColor
fn clone(&self) -> PointColor
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 moreSource§impl Debug for PointColor
impl Debug for PointColor
Source§impl<'de> Deserialize<'de> for PointColor
impl<'de> Deserialize<'de> for PointColor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PointColor
impl PartialEq for PointColor
Source§fn eq(&self, other: &PointColor) -> bool
fn eq(&self, other: &PointColor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PointColor
impl Serialize for PointColor
impl StructuralPartialEq for PointColor
Auto Trait Implementations§
impl Freeze for PointColor
impl RefUnwindSafe for PointColor
impl Send for PointColor
impl Sync for PointColor
impl Unpin for PointColor
impl UnsafeUnpin for PointColor
impl UnwindSafe for PointColor
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