pub struct CurvePreset {
pub name: String,
pub keys: Vec<Keyframe>,
pub absolute: bool,
}Expand description
A saved keyframe curve for one property. Key times are normalised to 0..1 of the clip length unless
absolute (seconds from the clip start); values are absolute.
Fields§
§name: String§keys: Vec<Keyframe>§absolute: boolTrait Implementations§
Source§impl Clone for CurvePreset
impl Clone for CurvePreset
Source§fn clone(&self) -> CurvePreset
fn clone(&self) -> CurvePreset
Returns a copy of the value. Read more
1.0.0 · 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 CurvePreset
impl Debug for CurvePreset
Source§impl Default for CurvePreset
impl Default for CurvePreset
Source§fn default() -> CurvePreset
fn default() -> CurvePreset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurvePreset
impl<'de> Deserialize<'de> for CurvePreset
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 CurvePreset
impl PartialEq for CurvePreset
Source§impl Serialize for CurvePreset
impl Serialize for CurvePreset
impl StructuralPartialEq for CurvePreset
Auto Trait Implementations§
impl Freeze for CurvePreset
impl RefUnwindSafe for CurvePreset
impl Send for CurvePreset
impl Sync for CurvePreset
impl Unpin for CurvePreset
impl UnwindSafe for CurvePreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more