Struct termplot::ViewCanvas

source ·
pub struct ViewCanvas<'view> { /* private fields */ }
Expand description

The view where graphs are graphed and plots are plotted.

Braille characters are use to draw on the canvas. termplot uses drawille::Canvas for darwing.

Implementations§

Draw a line from the point (x0, y0) to (x1, y1).

The coordinate are of the plotting space, and not the actual pixel’s coordinate.

This function uses the domain and codomain of the View to determine which pixels should be drawn. Therefor the drawn shape is relative to the position of the domain and codomain of the plotting space.

Draw a point at (x, y).

The coordinate are of the plotting space, and not the actual pixel’s coordinate.

This function uses the domain and codomain of the View to determine which pixels should be drawn. Therefor the drawn shape is relative to the position of the domain and codomain of the plotting space.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.