#[non_exhaustive]pub struct BoxplotOptions {
pub title: Option<String>,
pub xlabel: Option<String>,
pub ylabel: Option<String>,
pub border: BorderType,
pub margin: u16,
pub padding: u16,
pub labels: bool,
pub color: TermColor,
pub width: usize,
pub xlim: (f64, f64),
}Expand description
Configuration for boxplot construction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>Plot title displayed above the chart.
xlabel: Option<String>Label below the x-axis.
ylabel: Option<String>Label to the left of the y-axis.
border: BorderTypeBorder style (default: BorderType::Corners).
margin: u16Left margin in characters (default: 3).
padding: u16Padding between border and content (default: 1).
labels: boolWhether to show series name labels (default: true).
color: TermColorBox color (default: green).
width: usizeBox area width in characters (default: 40).
xlim: (f64, f64)Explicit x-axis limits. (0.0, 0.0) means auto-detect from data.
Trait Implementations§
Source§impl Clone for BoxplotOptions
impl Clone for BoxplotOptions
Source§fn clone(&self) -> BoxplotOptions
fn clone(&self) -> BoxplotOptions
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 BoxplotOptions
impl Debug for BoxplotOptions
Auto Trait Implementations§
impl Freeze for BoxplotOptions
impl RefUnwindSafe for BoxplotOptions
impl Send for BoxplotOptions
impl Sync for BoxplotOptions
impl Unpin for BoxplotOptions
impl UnsafeUnpin for BoxplotOptions
impl UnwindSafe for BoxplotOptions
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