Enum vega_lite_4::DiscreteWidthUnion
source · pub enum DiscreteWidthUnion {
DiscreteWidthClass(DiscreteWidthClass),
Double(f64),
}
Expand description
The default width when the plot has non-arc marks and either a discrete x-field or no
x-field. The width can be either a number indicating a fixed width or an object in the
form of {step: number}
defining the width per discrete step.
Default value: a step size based on config.view.step
.
Variants§
DiscreteWidthClass(DiscreteWidthClass)
Double(f64)
Trait Implementations§
source§impl Clone for DiscreteWidthUnion
impl Clone for DiscreteWidthUnion
source§fn clone(&self) -> DiscreteWidthUnion
fn clone(&self) -> DiscreteWidthUnion
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 DiscreteWidthUnion
impl Debug for DiscreteWidthUnion
source§impl<'de> Deserialize<'de> for DiscreteWidthUnion
impl<'de> Deserialize<'de> for DiscreteWidthUnion
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<DiscreteWidthClass> for DiscreteWidthUnion
impl From<DiscreteWidthClass> for DiscreteWidthUnion
source§fn from(original: DiscreteWidthClass) -> DiscreteWidthUnion
fn from(original: DiscreteWidthClass) -> DiscreteWidthUnion
Converts to this type from the input type.
source§impl From<f64> for DiscreteWidthUnion
impl From<f64> for DiscreteWidthUnion
source§fn from(original: f64) -> DiscreteWidthUnion
fn from(original: f64) -> DiscreteWidthUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for DiscreteWidthUnion
impl Send for DiscreteWidthUnion
impl Sync for DiscreteWidthUnion
impl Unpin for DiscreteWidthUnion
impl UnwindSafe for DiscreteWidthUnion
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