pub struct LayoutResult {
pub plot_area: Rect,
pub title_area: Option<Rect>,
pub xlabel_area: Option<Rect>,
pub ylabel_area: Option<Rect>,
pub legend_area: Option<Rect>,
pub tick_label_margins: Margins,
}Expand description
Result of the layout computation.
All rectangles use figure-pixel coordinates with the origin at the top-left corner and y increasing downward.
Fields§
§plot_area: RectThe plot/data area rectangle in figure-pixel coordinates.
title_area: Option<Rect>Space reserved at top for the title, if present.
xlabel_area: Option<Rect>Space reserved at bottom for the x-axis label, if present.
ylabel_area: Option<Rect>Space reserved at left for the y-axis label, if present.
legend_area: Option<Rect>Space reserved at right for the legend, if present.
tick_label_margins: MarginsAccumulated margins consumed by tick labels on each side.
Trait Implementations§
Source§impl Clone for LayoutResult
impl Clone for LayoutResult
Source§fn clone(&self) -> LayoutResult
fn clone(&self) -> LayoutResult
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 moreAuto Trait Implementations§
impl Freeze for LayoutResult
impl RefUnwindSafe for LayoutResult
impl Send for LayoutResult
impl Sync for LayoutResult
impl Unpin for LayoutResult
impl UnsafeUnpin for LayoutResult
impl UnwindSafe for LayoutResult
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