pub struct Curve {
pub width: u8,
pub interpolation: Interpolation,
pub looped: bool,
pub keys: Vec<Key>,
}Expand description
A function of one argument with one to four components.
Fields§
§width: u8The number of components (1 to 4).
interpolation: InterpolationHow it runs between keys.
looped: boolWhether the argument wraps at the last key’s at (the first key then follows it). A loop of no duration is its first
key’s value.
keys: Vec<Key>At least one key; a one-key curve is a constant.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Curve
Auto Trait Implementations§
impl Forget for Curve
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnsafeUnpin for Curve
impl UnwindSafe for Curve
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