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: Tmax: Tenv: Envelope<T>

Implementations

Construct a new, empty, default Envelope.

Construct a new Envelope from the given min, max and points.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The Point type which may be referenced and interpolated by the Envelope.

An iterator yielding references to Self::Points.

An iterator yielding the Points of the Envelope.

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

Sample the Envelope’s y value for every given positive x step starting from the first point’s X value. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.