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§
Auto Trait Implementations§
impl<X, Y> Freeze for Curve<X, Y>
impl<X, Y> RefUnwindSafe for Curve<X, Y>where
X: RefUnwindSafe,
Y: RefUnwindSafe,
impl<X, Y> Send for Curve<X, Y>
impl<X, Y> Sync for Curve<X, Y>
impl<X, Y> Unpin for Curve<X, Y>
impl<X, Y> UnwindSafe for Curve<X, Y>where
X: UnwindSafe,
Y: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreLayout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.