pub struct FigureDecl<P: Phase = Raw> {
pub visibility: Visibility,
pub name: Spanned<DeclName>,
pub plot_names: Vec<Spanned<ScopedName>>,
pub fields: Vec<PlotField<P>>,
}Expand description
Figure declaration: figure name = { plots: [a, b], title: "..." };
Figures group multiple plot declarations into a single combined chart with subplots. Like plots, they are leaf declarations.
Fields§
§visibility: Visibility§name: Spanned<DeclName>§plot_names: Vec<Spanned<ScopedName>>The plot names referenced by this figure (from the plots: [...] field).
fields: Vec<PlotField<P>>Additional fields (e.g., title).
Trait Implementations§
Source§impl<P: Clone + Phase> Clone for FigureDecl<P>
impl<P: Clone + Phase> Clone for FigureDecl<P>
Source§fn clone(&self) -> FigureDecl<P>
fn clone(&self) -> FigureDecl<P>
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 moreSource§impl FormatEquivalent for FigureDecl
impl FormatEquivalent for FigureDecl
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.Source§impl From<FigureDecl> for FigureDecl<Desugared>
impl From<FigureDecl> for FigureDecl<Desugared>
Source§fn from(f: FigureDecl<Raw>) -> Self
fn from(f: FigureDecl<Raw>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for FigureDecl<P>
impl<P> RefUnwindSafe for FigureDecl<P>
impl<P> Send for FigureDecl<P>
impl<P> Sync for FigureDecl<P>
impl<P> Unpin for FigureDecl<P>
impl<P> UnsafeUnpin for FigureDecl<P>
impl<P> UnwindSafe for FigureDecl<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