Enum textplots::Shape

source ·
pub enum Shape<'a> {
    Continuous(fn(_: f32) -> f32),
    Lines(&'a [(f32, f32)]),
    Steps(&'a [(f32, f32)]),
    Bars(&'a [(f32, f32)]),
}
Expand description

Specifies different kinds of plotted data.

Variants

Continuous(fn(_: f32) -> f32)

Real value function

Lines(&'a [(f32, f32)])

Points connected with lines.

Steps(&'a [(f32, f32)])

Points connected in step fashion.

Bars(&'a [(f32, f32)])

Points represented with bars.

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.