Enum vega_lite_4::PrimitiveValue
source · pub enum PrimitiveValue {
Bool(bool),
Double(f64),
RepeatRefClass(RepeatRefClass),
String(String),
}
Expand description
A constant value in data domain.
Variants§
Trait Implementations§
source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
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 PrimitiveValue
impl Debug for PrimitiveValue
source§impl<'de> Deserialize<'de> for PrimitiveValue
impl<'de> Deserialize<'de> for PrimitiveValue
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<&str> for PrimitiveValue
impl From<&str> for PrimitiveValue
source§impl From<RepeatRefClass> for PrimitiveValue
impl From<RepeatRefClass> for PrimitiveValue
source§fn from(original: RepeatRefClass) -> PrimitiveValue
fn from(original: RepeatRefClass) -> PrimitiveValue
Converts to this type from the input type.
source§impl From<String> for PrimitiveValue
impl From<String> for PrimitiveValue
source§fn from(original: String) -> PrimitiveValue
fn from(original: String) -> PrimitiveValue
Converts to this type from the input type.
source§impl From<bool> for PrimitiveValue
impl From<bool> for PrimitiveValue
source§fn from(original: bool) -> PrimitiveValue
fn from(original: bool) -> PrimitiveValue
Converts to this type from the input type.
source§impl From<f64> for PrimitiveValue
impl From<f64> for PrimitiveValue
source§fn from(original: f64) -> PrimitiveValue
fn from(original: f64) -> PrimitiveValue
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PrimitiveValue
impl Send for PrimitiveValue
impl Sync for PrimitiveValue
impl Unpin for PrimitiveValue
impl UnwindSafe for PrimitiveValue
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