pub struct PlotLayout {
pub padding_top: usize,
pub padding_bottom: usize,
pub padding_left: usize,
pub padding_right: usize,
pub text_col_width: usize,
pub content_col_width: usize,
pub bar_height: usize,
pub multi_lane_padding: usize,
pub section_padding_height: usize,
}Expand description
The dimensions of each part of the plot.
Fields§
§padding_top: usizePadding top for the entire svg.
padding_bottom: usizePadding bottom for the entire svg.
padding_left: usizePadding left for the entire svg.
padding_right: usizePadding right for the entire svg.
text_col_width: usizeThe width of the text column on the left.
content_col_width: usizeThe of the bar plot section on the entire middle-right.
bar_height: usizeThe height of each of the bars.
multi_lane_padding: usizeIn expanded mode, this much space is between the tracks.
section_padding_height: usizeThe padding between different kinds of spans.
Trait Implementations§
Source§impl Clone for PlotLayout
impl Clone for PlotLayout
Source§fn clone(&self) -> PlotLayout
fn clone(&self) -> PlotLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlotLayout
impl Debug for PlotLayout
Auto Trait Implementations§
impl Freeze for PlotLayout
impl RefUnwindSafe for PlotLayout
impl Send for PlotLayout
impl Sync for PlotLayout
impl Unpin for PlotLayout
impl UnwindSafe for PlotLayout
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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