pub struct GraphConfig<T>{ /* private fields */ }Expand description
Used to provide additional configuration for graphs
Implementations§
Source§impl<T: Copy + Clone> GraphConfig<T>
impl<T: Copy + Clone> GraphConfig<T>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a default config, specifying 80 column width, 5 column height and no title
Sourcepub fn max_height(self, h: usize) -> Self
pub fn max_height(self, h: usize) -> Self
Set the max height of the graph
Sourcepub fn y_range(self, range: YDataRange<T>) -> Self
pub fn y_range(self, range: YDataRange<T>) -> Self
Set the y-axis range style
Sourcepub fn plotting_symbol(self, s: char) -> Self
pub fn plotting_symbol(self, s: char) -> Self
Set the plotting symbol, default ‘#’
Sourcepub fn get_max_width(&self) -> usize
pub fn get_max_width(&self) -> usize
Gets current value of the max width
Sourcepub fn get_max_height(&self) -> usize
pub fn get_max_height(&self) -> usize
Gets current value of the max height
Sourcepub fn get_y_range(&self) -> YDataRange<T>
pub fn get_y_range(&self) -> YDataRange<T>
Gets current value of the y ranging mode
Sourcepub fn get_plotting_symbol(&self) -> char
pub fn get_plotting_symbol(&self) -> char
Gets the plotting symbol
Trait Implementations§
Source§impl<T> Debug for GraphConfig<T>
impl<T> Debug for GraphConfig<T>
Auto Trait Implementations§
impl<T> Freeze for GraphConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for GraphConfig<T>where
T: RefUnwindSafe,
impl<T> Send for GraphConfig<T>where
T: Send,
impl<T> Sync for GraphConfig<T>where
T: Sync,
impl<T> Unpin for GraphConfig<T>where
T: Unpin,
impl<T> UnwindSafe for GraphConfig<T>where
T: UnwindSafe,
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