pub struct BuiltPlot {Show 17 fields
pub layers: Vec<BuiltLayer>,
pub scales: ScaleSet,
pub coord: Box<dyn Coord>,
pub theme: Theme,
pub labels: Labels,
pub facet: Facet,
pub facet_axes: FacetAxes,
pub panels: Vec<Panel>,
pub panels_data: Vec<Vec<DataFrame>>,
pub annotations: Vec<Annotation>,
pub guide_legend: GuideLegend,
pub suppressed_aes: HashSet<Aesthetic>,
pub panel_scales: Vec<ScaleSet>,
pub warnings: Vec<String>,
pub clip: bool,
pub svg_classes: bool,
pub direct_labels: bool,
/* private fields */
}Expand description
A fully built plot ready for rendering.
Fields§
§layers: Vec<BuiltLayer>§scales: ScaleSet§coord: Box<dyn Coord>§theme: Theme§labels: Labels§facet: Facet§facet_axes: FacetAxesWhich facet panels get axes (#412).
panels: Vec<Panel>§panels_data: Vec<Vec<DataFrame>>Per-panel layer data. panels_data[panel_idx][layer_idx] = data for that panel+layer.
annotations: Vec<Annotation>§guide_legend: GuideLegend§suppressed_aes: HashSet<Aesthetic>Aesthetics suppressed from the legend (all layers with that aes set show_legend=false).
panel_scales: Vec<ScaleSet>Per-panel scale sets for free facets. Empty when FacetScales::Fixed.
warnings: Vec<String>Non-fatal problems found while building (ggplot2’s warnings), e.g.
“geom_point: removed 2 rows containing non-finite values”. See
BuiltPlot::warnings.
clip: boolClip the data layers to the panel (clip = "on", #411).
svg_classes: boolSemantic CSS classes on the SVG’s non-data elements (#465).
direct_labels: boolLines named at their ends instead of a colour legend (#543).
Implementations§
Source§impl BuiltPlot
impl BuiltPlot
Sourcepub fn summary(&self) -> PlotSummary
pub fn summary(&self) -> PlotSummary
What the plot draws, as numbers (see the module docs).
Sourcepub fn summary_text(&self) -> String
pub fn summary_text(&self) -> String
summary as text, one line per layer and panel.
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltPlot
impl !UnwindSafe for BuiltPlot
impl Forget for BuiltPlot
impl Freeze for BuiltPlotwhere
*const u8 is !null: Freeze,
PhantomData<BuiltLayer>: Freeze,
PhantomData<Box<dyn Scale>>: Freeze,
*const dyn Coord is !null: Freeze,
PhantomData<dyn Coord>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(f64, f64)>: Freeze,
PhantomData<(String, FacetLabeller)>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Panel>: Freeze,
PhantomData<Vec<DataFrame>>: Freeze,
PhantomData<Annotation>: Freeze,
PhantomData<Aesthetic>: Freeze,
PhantomData<(Aesthetic, String)>: Freeze,
PhantomData<(Aesthetic, KeyOverride)>: Freeze,
PhantomData<(Aesthetic, GuideColourbar)>: Freeze,
PhantomData<(Aesthetic, GuideBins)>: Freeze,
PhantomData<(Aesthetic, LegendPosition)>: Freeze,
PhantomData<GuideCustom>: Freeze,
PhantomData<LayerKey>: Freeze,
PhantomData<(Aesthetic, ())>: Freeze,
PhantomData<ScaleSet>: Freeze,
PhantomData<(Aesthetic, LegendPlan)>: Freeze,
impl Move for BuiltPlot
impl Send for BuiltPlotwhere
RawVecInner: Send,
RawTable<usize>: Send,
BoxRaw<dyn Geom>: Send,
BoxRaw<dyn Scale>: Send,
BoxRaw<dyn Coord>: Send,
Arc<Vec<u8>>: Send,
Arc<Mutex<Result<(BuiltPlot, RenderMeta), String>>>: Send,
Arc<dyn Fn(&mut dyn DrawBackend, &Rect) -> Result<(), RenderError> + Sync + Send>: Send,
RawTable<(Aesthetic, ())>: Send,
RawTable<(Aesthetic, LegendPlan)>: Send,
impl Sync for BuiltPlotwhere
RawVecInner: Sync,
RawTable<usize>: Sync,
BoxRaw<dyn Geom>: Sync,
BoxRaw<dyn Scale>: Sync,
BoxRaw<dyn Coord>: Sync,
Arc<Vec<u8>>: Sync,
Arc<Mutex<Result<(BuiltPlot, RenderMeta), String>>>: Sync,
Arc<dyn Fn(&mut dyn DrawBackend, &Rect) -> Result<(), RenderError> + Sync + Send>: Sync,
RawTable<(Aesthetic, ())>: Sync,
RawTable<(Aesthetic, LegendPlan)>: Sync,
impl Unpin for BuiltPlot
impl UnsafeUnpin for BuiltPlotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<BuiltLayer>: UnsafeUnpin,
PhantomData<Box<dyn Scale>>: UnsafeUnpin,
*const dyn Coord is !null: UnsafeUnpin,
PhantomData<dyn Coord>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(f64, f64)>: UnsafeUnpin,
PhantomData<(String, FacetLabeller)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Panel>: UnsafeUnpin,
PhantomData<Vec<DataFrame>>: UnsafeUnpin,
PhantomData<Annotation>: UnsafeUnpin,
PhantomData<Aesthetic>: UnsafeUnpin,
PhantomData<(Aesthetic, String)>: UnsafeUnpin,
PhantomData<(Aesthetic, KeyOverride)>: UnsafeUnpin,
PhantomData<(Aesthetic, GuideColourbar)>: UnsafeUnpin,
PhantomData<(Aesthetic, GuideBins)>: UnsafeUnpin,
PhantomData<(Aesthetic, LegendPosition)>: UnsafeUnpin,
PhantomData<GuideCustom>: UnsafeUnpin,
PhantomData<LayerKey>: UnsafeUnpin,
PhantomData<(Aesthetic, ())>: UnsafeUnpin,
PhantomData<ScaleSet>: UnsafeUnpin,
PhantomData<(Aesthetic, LegendPlan)>: 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