pub struct Keyframe {
pub offset: f64,
pub opacity: Option<f64>,
pub translate_x: Option<f64>,
pub translate_y: Option<f64>,
pub rotate: Option<f64>,
pub scale: Option<f64>,
pub band: Option<f64>,
}Expand description
One keyframe (absent channels = the rest value).
Fields§
§offset: f64§opacity: Option<f64>§translate_x: Option<f64>§translate_y: Option<f64>§rotate: Option<f64>§scale: Option<f64>§band: Option<f64>Trait Implementations§
impl Copy for Keyframe
Source§impl<'de> Deserialize<'de> for Keyframe
impl<'de> Deserialize<'de> for Keyframe
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
impl StructuralPartialEq for Keyframe
Auto Trait Implementations§
impl Freeze for Keyframe
impl RefUnwindSafe for Keyframe
impl Send for Keyframe
impl Sync for Keyframe
impl Unpin for Keyframe
impl UnsafeUnpin for Keyframe
impl UnwindSafe for Keyframe
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