pub enum PlotPoints {
    Owned(Vec<PlotPoint>),
    Generator(ExplicitGenerator),
}
Expand description

Represents many PlotPoints.

These can be an owned Vec or generated with a function.

Variants

Owned(Vec<PlotPoint>)

Generator(ExplicitGenerator)

Implementations

Draw a line based on a function y=f(x), a range (which can be infinite) for x and the number of points.

Draw a line based on a function (x,y)=f(t), a range for t and the number of points. The range may be specified as start..end or as start..=end.

From a series of y-values. The x-values will be the indices of these values

From a series of y-values. The x-values will be the indices of these values

Trait Implementations

Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Creates a value from an iterator. 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.