pub struct Animation { /* private fields */ }Implementations§
Source§impl Animation
impl Animation
pub fn new(name: impl Into<String>, duration: f64) -> Self
pub fn with_speed(self, speed: f32) -> Self
pub fn with_loop(self, mode: LoopMode) -> Self
pub fn with_track(self, name: impl Into<String>, track: Track) -> Self
pub fn name(&self) -> &str
pub fn duration(&self) -> f64
pub fn speed(&self) -> f32
pub fn loop_mode(&self) -> LoopMode
pub fn tracks(&self) -> &HashMap<String, Track>
pub fn sample(&self, t: f64) -> AnimationFrame
pub fn is_finished_at(&self, t: f64) -> bool
Trait Implementations§
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