[−][src]Struct vega_lite_4::SchemeParams
Fields
count: Option<f64>
The number of colors to use in the scheme. This can be useful for scale types such as
"quantize"
, which use the length of the scale range to determine the number of discrete
bins for the scale domain.
extent: Option<Vec<f64>>
The extent of the color range to use. For example [0.2, 1]
will rescale the color
scheme such that color values in the range [0, 0.2) are excluded from the scheme.
name: Option<String>
A color scheme name for ordinal scales (e.g., "category10"
or "blues"
).
For the full list of supported schemes, please refer to the Vega Scheme reference.
expr: Option<String>
Vega expression (which can refer to Vega-Lite parameters).
Trait Implementations
impl Clone for SchemeParams
[src]
pub fn clone(&self) -> SchemeParams
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SchemeParams
[src]
impl Default for SchemeParams
[src]
pub fn default() -> SchemeParams
[src]
impl<'de> Deserialize<'de> for SchemeParams
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<SchemeParams> for Scheme
[src]
pub fn from(original: SchemeParams) -> Scheme
[src]
impl Serialize for SchemeParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for SchemeParams
[src]
impl Send for SchemeParams
[src]
impl Sync for SchemeParams
[src]
impl Unpin for SchemeParams
[src]
impl UnwindSafe for SchemeParams
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,