Enum vega_lite_4::ScaleRange
source · pub enum ScaleRange {
Enum(RangeEnum),
RangeClass(RangeClass),
UnionArray(Vec<FluffyRange>),
}
Expand description
The range of the scale. One of:
-
A string indicating a pre-defined named scale range (e.g., example,
"symbol"
, or"diverging"
). -
For continuous scales, two-element array indicating minimum and maximum values, or an array with more than two entries for specifying a piecewise scale.
-
For discrete and discretizing scales, an array of desired output values or an object with a
field
property representing the range values. For example, if a fieldcolor
contains CSS color names, we can setrange
to{field: "color"}
.
Notes:
Variants§
Trait Implementations§
source§impl Clone for ScaleRange
impl Clone for ScaleRange
source§fn clone(&self) -> ScaleRange
fn clone(&self) -> ScaleRange
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 ScaleRange
impl Debug for ScaleRange
source§impl<'de> Deserialize<'de> for ScaleRange
impl<'de> Deserialize<'de> for ScaleRange
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<RangeClass> for ScaleRange
impl From<RangeClass> for ScaleRange
source§fn from(original: RangeClass) -> ScaleRange
fn from(original: RangeClass) -> ScaleRange
Converts to this type from the input type.
source§impl From<RangeEnum> for ScaleRange
impl From<RangeEnum> for ScaleRange
source§fn from(original: RangeEnum) -> ScaleRange
fn from(original: RangeEnum) -> ScaleRange
Converts to this type from the input type.
source§impl From<Vec<FluffyRange, Global>> for ScaleRange
impl From<Vec<FluffyRange, Global>> for ScaleRange
source§fn from(original: Vec<FluffyRange>) -> ScaleRange
fn from(original: Vec<FluffyRange>) -> ScaleRange
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ScaleRange
impl Send for ScaleRange
impl Sync for ScaleRange
impl Unpin for ScaleRange
impl UnwindSafe for ScaleRange
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