pub enum Keyed<T> {
Const(T),
Keys(Vec<Key<T>>),
Track(Track<T>),
}Expand description
A parameter: a constant, keys sorted by time, or an expression track.
Variants§
Implementations§
Source§impl<T: Animatable> Keyed<T>
impl<T: Animatable> Keyed<T>
Sourcepub fn parse(v: &Value, what: &'static str) -> Result<Self>
pub fn parse(v: &Value, what: &'static str) -> Result<Self>
A constant, the keyframe form or an expression; what names the parameter in errors.
Sourcepub fn from_keys(keys: Vec<Key<T>>) -> Self
pub fn from_keys(keys: Vec<Key<T>>) -> Self
Keys in any order (sorted here, stable for equal times).
pub fn is_animated(&self) -> bool
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Keyed<T>
Auto Trait Implementations§
impl<T> Forget for Keyed<T>
impl<T> Freeze for Keyed<T>
impl<T> RefUnwindSafe for Keyed<T>
impl<T> Send for Keyed<T>
impl<T> Sync for Keyed<T>
impl<T> Unpin for Keyed<T>
impl<T> UnsafeUnpin for Keyed<T>
impl<T> UnwindSafe for Keyed<T>
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