#[non_exhaustive]pub struct BarplotOptions {
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,
}Expand description
Configuration for barplot 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::Barplot).
margin: u16Left margin in characters (default: 3).
padding: u16Padding between border and content (default: 1).
labels: boolWhether to show value labels to the right of each bar (default: true).
color: TermColorBar color (default: green).
width: usizeMaximum bar width in characters (default: 40).
symbol: Option<char>Custom single-character bar symbol. None uses fractional block characters.
xscale: ScaleX-axis scale transform applied to bar lengths (default: identity).
Trait Implementations§
Source§impl Clone for BarplotOptions
impl Clone for BarplotOptions
Source§fn clone(&self) -> BarplotOptions
fn clone(&self) -> BarplotOptions
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 BarplotOptions
impl Debug for BarplotOptions
Auto Trait Implementations§
impl Freeze for BarplotOptions
impl RefUnwindSafe for BarplotOptions
impl Send for BarplotOptions
impl Sync for BarplotOptions
impl Unpin for BarplotOptions
impl UnsafeUnpin for BarplotOptions
impl UnwindSafe for BarplotOptions
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