Struct termplot::View

source ·
pub struct View {
    pub domain: Domain,
    pub codomain: Domain,
    pub size: Size,
    /* private fields */
}
Expand description

A View is where the graph and plots are drawn. The view does not includes decorations around the plot (labels, title, border, etc..).

Fields§

§domain: Domain

Domain (range of the x axis) of the plot or graph.

§codomain: Domain

Codomain (range of the y axis) of the plot or graph.

§size: Size

The size of the view. This does not include decorations around the plot.

The size is not the number of chars but the number of pixels. Pixels are smaller than chars. A char in the terminal is 2 by 4 pixels.

Trait Implementations§

Returns the “default value” for a type. Read more

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.