pub struct MotionKeyframe {
pub offset: f32,
pub values: BTreeMap<String, Value>,
pub curve: Option<MotionCurve>,
}Fields§
§offset: f32§values: BTreeMap<String, Value>§curve: Option<MotionCurve>Implementations§
Source§impl MotionKeyframe
impl MotionKeyframe
pub fn new(offset: f32) -> Self
pub fn with_value(self, key: impl Into<String>, value: Value) -> Self
pub fn value(self, key: impl Into<String>, value: Value) -> Self
pub fn with_curve(self, curve: MotionCurve) -> Self
pub fn curve(self, curve: MotionCurve) -> Self
Trait Implementations§
Source§impl Clone for MotionKeyframe
impl Clone for MotionKeyframe
Source§fn clone(&self) -> MotionKeyframe
fn clone(&self) -> MotionKeyframe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MotionKeyframe
impl Debug for MotionKeyframe
Source§impl<'de> Deserialize<'de> for MotionKeyframe
impl<'de> Deserialize<'de> for MotionKeyframe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MotionKeyframe
impl PartialEq for MotionKeyframe
Source§fn eq(&self, other: &MotionKeyframe) -> bool
fn eq(&self, other: &MotionKeyframe) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MotionKeyframe
impl Serialize for MotionKeyframe
impl StructuralPartialEq for MotionKeyframe
Auto Trait Implementations§
impl Freeze for MotionKeyframe
impl RefUnwindSafe for MotionKeyframe
impl Send for MotionKeyframe
impl Sync for MotionKeyframe
impl Unpin for MotionKeyframe
impl UnsafeUnpin for MotionKeyframe
impl UnwindSafe for MotionKeyframe
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