Enum vega_lite_4::VegaliteAlign
source · pub enum VegaliteAlign {
Enum(LayoutAlign),
RowColLayoutAlign(RowColLayoutAlign),
}
Expand description
The alignment to apply to grid rows and columns. The supported string values are "all"
,
"each"
, and "none"
.
- For
"none"
, a flow layout will be used, in which adjacent subviews are simply placed one after the other. - For"each"
, subviews will be aligned into a clean grid structure, but each row or column may be of variable size. - For"all"
, subviews will be aligned and each row or column will be sized identically based on the maximum observed size. String values for this property will be applied to both grid rows and columns.
Alternatively, an object value of the form {"row": string, "column": string}
can be
used to supply different alignments for rows and columns.
Default value: "all"
.
Variants§
Enum(LayoutAlign)
RowColLayoutAlign(RowColLayoutAlign)
Trait Implementations§
source§impl Clone for VegaliteAlign
impl Clone for VegaliteAlign
source§fn clone(&self) -> VegaliteAlign
fn clone(&self) -> VegaliteAlign
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 VegaliteAlign
impl Debug for VegaliteAlign
source§impl<'de> Deserialize<'de> for VegaliteAlign
impl<'de> Deserialize<'de> for VegaliteAlign
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<LayoutAlign> for VegaliteAlign
impl From<LayoutAlign> for VegaliteAlign
source§fn from(original: LayoutAlign) -> VegaliteAlign
fn from(original: LayoutAlign) -> VegaliteAlign
Converts to this type from the input type.
source§impl From<RowColLayoutAlign> for VegaliteAlign
impl From<RowColLayoutAlign> for VegaliteAlign
source§fn from(original: RowColLayoutAlign) -> VegaliteAlign
fn from(original: RowColLayoutAlign) -> VegaliteAlign
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for VegaliteAlign
impl Send for VegaliteAlign
impl Sync for VegaliteAlign
impl Unpin for VegaliteAlign
impl UnwindSafe for VegaliteAlign
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