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