pub struct Graph { /* private fields */ }
Implementations
sourceimpl 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 RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more