#[non_exhaustive]pub struct HistogramOptions {Show 13 fields
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 symbol: Option<char>,
pub xscale: Scale,
pub nbins: Option<usize>,
pub closed: ClosedInterval,
}Expand description
Configuration for histogram 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 (auto-set to frequency/log label when appropriate).
ylabel: Option<String>Label to the left of the y-axis.
border: BorderTypeBorder style (default: BorderType::Barplot).
margin: u16Left margin in characters (default: 3).
padding: u16Padding between border and content (default: 1).
labels: boolWhether to show bin interval labels (default: true).
color: TermColorBar color (default: green).
width: usizeMaximum bar width in characters (default: 40).
symbol: Option<char>Custom bar symbol. None uses ▇.
xscale: ScaleX-axis scale transform applied to bin counts (default: identity).
nbins: Option<usize>Number of bins. None uses Sturges’ rule.
closed: ClosedIntervalWhich end of each bin interval is closed (default: ClosedInterval::Left).
Trait Implementations§
Source§impl Clone for HistogramOptions
impl Clone for HistogramOptions
Source§fn clone(&self) -> HistogramOptions
fn clone(&self) -> HistogramOptions
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 HistogramOptions
impl Debug for HistogramOptions
Auto Trait Implementations§
impl Freeze for HistogramOptions
impl RefUnwindSafe for HistogramOptions
impl Send for HistogramOptions
impl Sync for HistogramOptions
impl Unpin for HistogramOptions
impl UnsafeUnpin for HistogramOptions
impl UnwindSafe for HistogramOptions
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