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)]),
}

Specifies different kinds of plotted data.

Variants

Continuous(Box<dyn Fn(f32) -> f32 + 'a>)

Real value function.

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

Points of a scatter plot.

Points connected with lines.

Points connected in step fashion.

Points represented with bars.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Shape<'a>

impl<'a> !Send for Shape<'a>

impl<'a> !Sync for Shape<'a>

impl<'a> Unpin for Shape<'a>

impl<'a> !UnwindSafe for Shape<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.