criterion_plot::curve

Enum Curve

Source
pub enum Curve<X, Y> {
    Dots {
        x: X,
        y: Y,
    },
    Impulses {
        x: X,
        y: Y,
    },
    Lines {
        x: X,
        y: Y,
    },
    LinesPoints {
        x: X,
        y: Y,
    },
    Points {
        x: X,
        y: Y,
    },
    Steps {
        x: X,
        y: Y,
    },
}
Expand description

Types of “curve” plots

Variants§

§

Dots

A minimally sized dot on each data point

Fields

§x: X

X coordinate of the data points

§y: Y

Y coordinate of the data points

§

Impulses

A vertical “impulse” on each data point

Fields

§x: X

X coordinate of the data points

§y: Y

Y coordinate of the data points

§

Lines

Line that joins the data points

Fields

§x: X

X coordinate of the data points

§y: Y

Y coordinate of the data points

§

LinesPoints

Line with a point on each data point

Fields

§x: X

X coordinate of the data points

§y: Y

Y coordinate of the data points

§

Points

A point on each data point

Fields

§x: X

X coordinate of the data points

§y: Y

Y coordinate of the data points

§

Steps

An step _| between each data point

Fields

§x: X

X coordinate of the data points

§y: Y

Y coordinate of the data points

Trait Implementations§

Source§

impl<X, Y> Plot<Curve<X, Y>> for Figure
where X: IntoIterator, X::Item: Data, Y: IntoIterator, Y::Item: Data,

Source§

type Properties = Properties

The properties associated to the plot
Source§

fn plot<F>(&mut self, curve: Curve<X, Y>, configure: F) -> &mut Figure
where F: FnOnce(&mut Properties) -> &mut Properties,

Plots some data with some configuration

Auto Trait Implementations§

§

impl<X, Y> Freeze for Curve<X, Y>
where X: Freeze, Y: Freeze,

§

impl<X, Y> RefUnwindSafe for Curve<X, Y>

§

impl<X, Y> Send for Curve<X, Y>
where X: Send, Y: Send,

§

impl<X, Y> Sync for Curve<X, Y>
where X: Sync, Y: Sync,

§

impl<X, Y> Unpin for Curve<X, Y>
where X: Unpin, Y: Unpin,

§

impl<X, Y> UnwindSafe for Curve<X, Y>
where X: UnwindSafe, Y: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.