Enum vega_lite_4::ScaleInterpolate
source · pub enum ScaleInterpolate {
Enum(ScaleInterpolateEnum),
ExprRef(ExprRef),
}
Expand description
The interpolation method for range values. By default, a general interpolator for
numbers, dates, strings and colors (in HCL space) is used. For color ranges, this
property allows interpolation in alternative color spaces. Legal values include rgb
,
hsl
, hsl-long
, lab
, hcl
, hcl-long
, cubehelix
and cubehelix-long
(‘-long’
variants use longer paths in polar coordinate spaces). If object-valued, this property
accepts an object with a string-valued type property and an optional numeric gamma
property applicable to rgb and cubehelix interpolators. For more, see the d3-interpolate
documentation.
- Default value:
hcl
Variants§
Enum(ScaleInterpolateEnum)
ExprRef(ExprRef)
Trait Implementations§
source§impl Clone for ScaleInterpolate
impl Clone for ScaleInterpolate
source§fn clone(&self) -> ScaleInterpolate
fn clone(&self) -> ScaleInterpolate
Returns a copy 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 ScaleInterpolate
impl Debug for ScaleInterpolate
source§impl<'de> Deserialize<'de> for ScaleInterpolate
impl<'de> Deserialize<'de> for ScaleInterpolate
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 From<ExprRef> for ScaleInterpolate
impl From<ExprRef> for ScaleInterpolate
source§fn from(original: ExprRef) -> ScaleInterpolate
fn from(original: ExprRef) -> ScaleInterpolate
Converts to this type from the input type.
source§impl From<ScaleInterpolateEnum> for ScaleInterpolate
impl From<ScaleInterpolateEnum> for ScaleInterpolate
source§fn from(original: ScaleInterpolateEnum) -> ScaleInterpolate
fn from(original: ScaleInterpolateEnum) -> ScaleInterpolate
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ScaleInterpolate
impl Send for ScaleInterpolate
impl Sync for ScaleInterpolate
impl Unpin for ScaleInterpolate
impl UnwindSafe for ScaleInterpolate
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