pub enum CompositionProperty {
Title,
Width,
Height,
}Expand description
A figure/layer-level property.
Variants§
Implementations§
Source§impl CompositionProperty
impl CompositionProperty
Sourcepub fn from_name(s: &str) -> Option<Self>
pub fn from_name(s: &str) -> Option<Self>
Parse a composition property from its source-level name.
Sourcepub const fn value_type(self) -> PlotPropertyType
pub const fn value_type(self) -> PlotPropertyType
The value type this property expects.
Sourcepub const fn applies_to_figure(self) -> bool
pub const fn applies_to_figure(self) -> bool
Whether the property is honored on figure declarations.
Figures render as Vega-Lite hconcat, which has no top-level
width/height — only title applies; sizes belong on the
constituent plots (or on layers).
Trait Implementations§
Source§impl Clone for CompositionProperty
impl Clone for CompositionProperty
Source§fn clone(&self) -> CompositionProperty
fn clone(&self) -> CompositionProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompositionProperty
Source§impl Debug for CompositionProperty
impl Debug for CompositionProperty
impl Eq for CompositionProperty
Source§impl Hash for CompositionProperty
impl Hash for CompositionProperty
Source§impl PartialEq for CompositionProperty
impl PartialEq for CompositionProperty
Source§fn eq(&self, other: &CompositionProperty) -> bool
fn eq(&self, other: &CompositionProperty) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompositionProperty
Auto Trait Implementations§
impl Freeze for CompositionProperty
impl RefUnwindSafe for CompositionProperty
impl Send for CompositionProperty
impl Sync for CompositionProperty
impl Unpin for CompositionProperty
impl UnsafeUnpin for CompositionProperty
impl UnwindSafe for CompositionProperty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.