Enum criterion_plot::curve::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
Impulses
A vertical “impulse” on each data point
Lines
Line that joins the data points
LinesPoints
Line with a point on each data point
Points
A point on each data point
Steps
An step _|
between each data point
Trait Implementations
sourceimpl<X, Y> Plot<Curve<X, Y>> for Figure where
X: IntoIterator,
X::Item: Data,
Y: IntoIterator,
Y::Item: Data,
impl<X, Y> Plot<Curve<X, Y>> for Figure where
X: IntoIterator,
X::Item: Data,
Y: IntoIterator,
Y::Item: Data,
type Properties = Properties
type Properties = Properties
The properties associated to the plot
sourcefn plot<F>(&mut self, curve: Curve<X, Y>, configure: F) -> &mut Figure where
F: FnOnce(&mut Properties) -> &mut Properties,
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> RefUnwindSafe for Curve<X, Y> where
X: RefUnwindSafe,
Y: RefUnwindSafe,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more