pub struct PlotOptions {
pub width: usize,
pub height: usize,
pub max_x_ticks: usize,
pub max_y_ticks: usize,
pub line_char: char,
pub point_char: char,
pub background_char: char,
pub show_grid: bool,
pub show_legend: bool,
}
Expand description
Represents ASCII plotting options
Fields§
§width: usize
Width of the plot in characters
height: usize
Height of the plot in characters
max_x_ticks: usize
Maximum number of ticks on x-axis
max_y_ticks: usize
Maximum number of ticks on y-axis
line_char: char
Character to use for the plot line
point_char: char
Character to use for plot points
background_char: char
Character to use for the plot background
show_grid: bool
Whether to show a grid
show_legend: bool
Whether to show a legend
Trait Implementations§
Source§impl Clone for PlotOptions
impl Clone for PlotOptions
Source§fn clone(&self) -> PlotOptions
fn clone(&self) -> PlotOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlotOptions
impl Debug for PlotOptions
Auto Trait Implementations§
impl Freeze for PlotOptions
impl RefUnwindSafe for PlotOptions
impl Send for PlotOptions
impl Sync for PlotOptions
impl Unpin for PlotOptions
impl UnwindSafe for PlotOptions
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> 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