pub enum Animation {
FadeIn(i64),
FadeOut(i64),
Move {
from: Position,
to: Position,
duration: i64,
},
Karaoke {
color: Color,
timings: Vec<i64>,
},
Scale {
from: f32,
to: f32,
duration: i64,
},
Rotate {
from: f32,
to: f32,
duration: i64,
},
}Expand description
Animation effect for subtitles.
Variants§
FadeIn(i64)
Fade in over duration (milliseconds).
FadeOut(i64)
Fade out over duration (milliseconds).
Move
Move from position to position over duration.
Fields
Karaoke
Karaoke effect - highlight words as they’re sung.
Fields
Scale
Scale animation.
Fields
Rotate
Rotation animation (degrees).
Trait Implementations§
impl StructuralPartialEq for Animation
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnsafeUnpin for Animation
impl UnwindSafe for Animation
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,
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