pub struct Graph { /* private fields */ }
Implementations§
Source§impl Graph
impl Graph
Sourcepub fn new<X: AsF64, Y: AsF64, F: Fn(X) -> Y>(
f: Function<X, Y, F>,
width: u32,
set_height: Option<u32>,
) -> Graph
pub fn new<X: AsF64, Y: AsF64, F: Fn(X) -> Y>( f: Function<X, Y, F>, width: u32, set_height: Option<u32>, ) -> Graph
width
refers to the total width of the graph, meaning that the function will be printed from 0 to width - 1 - max_height_number_digits
pub fn new_screen<X: AsF64, Y: AsF64, F: Fn(X) -> Y>( f: Function<X, Y, F>, ) -> Graph
pub fn with_options<X: AsF64, Y: AsF64, F: Fn(X) -> Y>( f: Function<X, Y, F>, width: u32, set_height: Option<u32>, options: GraphOptions, ) -> Graph
pub fn with_options_screen<X: AsF64, Y: AsF64, F: Fn(X) -> Y>( f: Function<X, Y, F>, options: GraphOptions, ) -> Graph
pub fn draw(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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