[−][src]Struct nannou_timeline::track::automation::numeric::Envelope
An envelope with some min and max for the value range.
Fields
min: T
max: T
env: Envelope<T>
Implementations
impl<T> Envelope<T>
[src]
pub fn new(min: T, max: T) -> Envelope<T>
[src]
Construct a new, empty, default Envelope.
pub fn from_points<I>(points: I, min: T, max: T) -> Envelope<T> where
I: IntoIterator<Item = Point<T>>,
[src]
I: IntoIterator<Item = Point<T>>,
Construct a new Envelope from the given min, max and points.
Trait Implementations
impl<T: Clone> Clone for Envelope<T>
[src]
impl<T: Debug> Debug for Envelope<T>
[src]
impl<'a, T: 'a> Envelope<'a> for Envelope<T> where
T: PartialEq + Spatial,
Point<T>: PointTrait<X = Ticks, Y = T>,
[src]
T: PartialEq + Spatial,
Point<T>: PointTrait<X = Ticks, Y = T>,
type X = Ticks
type Y = T
type Point = Point<T>
The Point
type which may be referenced and interpolated by the Envelope
.
type Points = Iter<'a, Point<T>>
An iterator yielding references to Self::Point
s.
fn points(&'a self) -> Self::Points
[src]
fn point_idx_before(&'a self, x: Self::X) -> Option<usize>
[src]
fn point_idx_on_or_before(&'a self, x: Self::X) -> Option<usize>
[src]
fn point_idx_after(&'a self, x: Self::X) -> Option<usize>
[src]
fn point_idx_on_or_after(&'a self, x: Self::X) -> Option<usize>
[src]
fn point_before(&'a self, x: Self::X) -> Option<&'a Self::Point>
[src]
fn point_on_or_before(&'a self, x: Self::X) -> Option<&'a Self::Point>
[src]
fn point_before_with_idx(
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
[src]
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
fn point_on_or_before_with_idx(
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
[src]
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
fn point_after(&'a self, x: Self::X) -> Option<&'a Self::Point>
[src]
fn point_on_or_after(&'a self, x: Self::X) -> Option<&'a Self::Point>
[src]
fn point_after_with_idx(
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
[src]
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
fn point_on_or_after_with_idx(
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
[src]
&'a self,
x: Self::X
) -> Option<(usize, &'a Self::Point)>
fn point_at(&'a self, x: Self::X) -> Option<&'a Self::Point>
[src]
fn point_at_with_idx(&'a self, x: Self::X) -> Option<(usize, &'a Self::Point)>
[src]
fn surrounding_points(
&'a self,
x: Self::X
) -> (Option<&'a Self::Point>, Option<&'a Self::Point>)
[src]
&'a self,
x: Self::X
) -> (Option<&'a Self::Point>, Option<&'a Self::Point>)
fn closest_point(&'a self, x: Self::X) -> Option<&'a Self::Point> where
Self::X: Sub<Self::X>,
<Self::X as Sub<Self::X>>::Output == Self::X,
[src]
Self::X: Sub<Self::X>,
<Self::X as Sub<Self::X>>::Output == Self::X,
fn y(&'a self, x: Self::X) -> Option<Self::Y> where
<Self::Y as Spatial>::Scalar: Scalar,
[src]
<Self::Y as Spatial>::Scalar: Scalar,
fn steps(&'a self, start: Self::X, step: Self::X) -> Option<Steps<'a, Self>>
[src]
impl From<Envelope<Bang>> for Dynamic
[src]
impl From<Envelope<Toggle>> for Dynamic
[src]
impl From<Envelope<f32>> for Dynamic
[src]
impl From<Envelope<f64>> for Dynamic
[src]
impl From<Envelope<i16>> for Dynamic
[src]
impl From<Envelope<i32>> for Dynamic
[src]
impl From<Envelope<i64>> for Dynamic
[src]
impl From<Envelope<i8>> for Dynamic
[src]
impl From<Envelope<u16>> for Dynamic
[src]
impl From<Envelope<u32>> for Dynamic
[src]
impl From<Envelope<u64>> for Dynamic
[src]
impl From<Envelope<u8>> for Dynamic
[src]
impl<T: PartialEq> PartialEq<Envelope<T>> for Envelope<T>
[src]
impl<T> StructuralPartialEq for Envelope<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Envelope<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Envelope<T> where
T: Send,
T: Send,
impl<T> Sync for Envelope<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Envelope<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Envelope<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,