pub enum GridCell {
Plot(Box<GGPlot>),
Grid(Box<PlotGrid>),
Spacer,
Element(Box<GridElement>),
}Expand description
One grid cell.
Variants§
Plot(Box<GGPlot>)
Grid(Box<PlotGrid>)
Spacer
An empty cell (patchwork’s plot_spacer()).
Element(Box<GridElement>)
A non-plot cell — a caller-rendered SVG fragment such as a table,
a KPI or a note (patchwork’s wrap_elements, #378).
Trait Implementations§
Source§impl From<GridElement> for GridCell
impl From<GridElement> for GridCell
Source§fn from(e: GridElement) -> Self
fn from(e: GridElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GridCell
impl !UnwindSafe for GridCell
impl Forget for GridCell
impl Freeze for GridCellwhere
*const GGPlot is !null: Freeze,
PhantomData<GGPlot>: Freeze,
*const PlotGrid is !null: Freeze,
PhantomData<PlotGrid>: Freeze,
*const GridElement is !null: Freeze,
PhantomData<GridElement>: Freeze,
impl Move for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnsafeUnpin for GridCellwhere
*const GGPlot is !null: UnsafeUnpin,
PhantomData<GGPlot>: UnsafeUnpin,
*const PlotGrid is !null: UnsafeUnpin,
PhantomData<PlotGrid>: UnsafeUnpin,
*const GridElement is !null: UnsafeUnpin,
PhantomData<GridElement>: UnsafeUnpin,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more