pub enum KeyframeValue {
Alpha(f32),
Paint(Paint),
Transform(Cow<'static, [TransformFunction]>),
}Expand description
What one keyframe holds, which has to be what its animation’s property takes.
Variants§
Alpha(f32)
Paint(Paint)
For Color, Background and BorderColor. A role is resolved against the theme every frame.
Transform(Cow<'static, [TransformFunction]>)
A list of functions, the same kinds in the same order in every keyframe.
Trait Implementations§
Source§impl Clone for KeyframeValue
impl Clone for KeyframeValue
Source§impl Debug for KeyframeValue
impl Debug for KeyframeValue
Source§impl PartialEq for KeyframeValue
impl PartialEq for KeyframeValue
impl StructuralPartialEq for KeyframeValue
Auto Trait Implementations§
impl Freeze for KeyframeValue
impl RefUnwindSafe for KeyframeValue
impl Send for KeyframeValue
impl Sync for KeyframeValue
impl Unpin for KeyframeValue
impl UnsafeUnpin for KeyframeValue
impl UnwindSafe for KeyframeValue
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