pub struct LayerDecl<P: Phase = Raw> {
pub visibility: Visibility,
pub name: Spanned<DeclName>,
pub plot_names: Vec<Spanned<ScopedName>>,
pub fields: Vec<PlotField<P>>,
}Expand description
A layer declaration: overlays multiple plots on shared axes.
Syntax: layer name = { plots: [a, b], title: "..." };
Unlike figure (which tiles plots side-by-side), layer overlays
them on the same coordinate space. In Vega-Lite this maps to the
"layer" composition operator.
Fields§
§visibility: Visibility§name: Spanned<DeclName>§plot_names: Vec<Spanned<ScopedName>>The plot names to overlay (from the plots: [...] field).
fields: Vec<PlotField<P>>Additional fields (e.g., title).
Trait Implementations§
Source§impl FormatEquivalent for LayerDecl
impl FormatEquivalent for LayerDecl
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for LayerDecl<P>
impl<P> RefUnwindSafe for LayerDecl<P>
impl<P> Send for LayerDecl<P>
impl<P> Sync for LayerDecl<P>
impl<P> Unpin for LayerDecl<P>
impl<P> UnsafeUnpin for LayerDecl<P>
impl<P> UnwindSafe for LayerDecl<P>
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