pub struct AnimationComposition {
pub name: String,
pub animations: Vec<ComposedAnimation>,
pub timing: CompositionTiming,
}Expand description
Animation composition
Fields§
§name: StringComposition name
animations: Vec<ComposedAnimation>Animations to compose
timing: CompositionTimingComposition timing
Implementations§
Source§impl AnimationComposition
impl AnimationComposition
Sourcepub fn add_animation(&mut self, animation: ComposedAnimation)
pub fn add_animation(&mut self, animation: ComposedAnimation)
Add an animation to the composition
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Convert to class name
Trait Implementations§
Source§impl Clone for AnimationComposition
impl Clone for AnimationComposition
Source§fn clone(&self) -> AnimationComposition
fn clone(&self) -> AnimationComposition
Returns a duplicate 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 AnimationComposition
impl Debug for AnimationComposition
Source§impl<'de> Deserialize<'de> for AnimationComposition
impl<'de> Deserialize<'de> for AnimationComposition
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 Display for AnimationComposition
impl Display for AnimationComposition
Source§impl PartialEq for AnimationComposition
impl PartialEq for AnimationComposition
Source§impl Serialize for AnimationComposition
impl Serialize for AnimationComposition
impl StructuralPartialEq for AnimationComposition
Auto Trait Implementations§
impl Freeze for AnimationComposition
impl RefUnwindSafe for AnimationComposition
impl Send for AnimationComposition
impl Sync for AnimationComposition
impl Unpin for AnimationComposition
impl UnwindSafe for AnimationComposition
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