Struct nannou_timeline::track::automation::numeric::Envelope [−][src]
pub struct Envelope<T> {
pub min: T,
pub max: T,
pub env: Envelope<T>,
}
Expand description
An envelope with some min and max for the value range.
Fields
min: T
max: T
env: Envelope<T>
Implementations
pub fn from_points<I>(points: I, min: T, max: T) -> Envelope<T> where
I: IntoIterator<Item = Point<T>>,
pub fn from_points<I>(points: I, min: T, max: T) -> Envelope<T> where
I: IntoIterator<Item = Point<T>>,
Construct a new Envelope from the given min, max and points.
Trait Implementations
type Y = T
The index of the Point
that comes directly before the given x
.
The index of the Point
that either lands on or comes directly before the given x
.
The index of the Point
that comes directly after the given x
.
The index of the Point
that comes directly after the given x
.
A reference to the first point that comes before the given x
.
A reference to the first point that is equal to or comes before the given x
.
A reference to the first point that comes before the given x
along with its index.
A reference to the first point that is equal to or comes before the given x
along with
its index. Read more
A reference to the first point that comes after the given x
.
A reference to the first point that is equal to or comes after the given x
.
A reference to the first point that comes after the given x
along with its index.
A reference to the first point that is equal to or comes after the given x
along with
its index. Read more
A reference to the first point lying directly on the given x
if there is one.
A reference to the first point (along with it’s index) lying directly on the given x
if
there is one. Read more
The points that lie on either side of the given x
. Read more
A reference point that is closest to the given x
if there is one. Read more
Return y
for the given x
. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Envelope<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Envelope<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more