Enum textplots::Shape[][src]

pub enum Shape<'a> {
    Continuous(Box<dyn Fn(f32) -> f32 + 'a>),
    Points(&'a [(f32, f32)]),
    Lines(&'a [(f32, f32)]),
    Steps(&'a [(f32, f32)]),
    Bars(&'a [(f32, f32)]),
}
Expand description

Specifies different kinds of plotted data.

Variants

Continuous

Real value function.

Tuple Fields of Continuous

0: Box<dyn Fn(f32) -> f32 + 'a>
Points

Points of a scatter plot.

Tuple Fields of Points

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

Points connected with lines.

Tuple Fields of Lines

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

Points connected in step fashion.

Tuple Fields of Steps

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

Points represented with bars.

Tuple Fields of Bars

0: &'a [(f32, f32)]

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

Performs the conversion.

Performs the conversion.

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.