pub struct Choreography { /* private fields */ }Implementations§
Source§impl Choreography
impl Choreography
pub fn new() -> Self
pub fn with_loop(self, mode: LoopMode) -> Self
pub fn add(self, animation: Animation, at_secs: f64) -> Self
pub fn add_weighted( self, animation: Animation, at_secs: f64, weight: f32, ) -> Self
pub fn stagger( animations: impl IntoIterator<Item = Animation>, step: f64, ) -> Self
pub fn add_staggered( self, animations: impl IntoIterator<Item = Animation>, step: f64, ) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn loop_mode(&self) -> LoopMode
pub fn duration(&self) -> f64
pub fn is_finished_at(&self, t: f64) -> bool
pub fn sample(&self, t: f64) -> AnimationFrame
Trait Implementations§
Source§impl Clone for Choreography
impl Clone for Choreography
Source§impl Debug for Choreography
impl Debug for Choreography
Auto Trait Implementations§
impl Freeze for Choreography
impl RefUnwindSafe for Choreography
impl Send for Choreography
impl Sync for Choreography
impl Unpin for Choreography
impl UnsafeUnpin for Choreography
impl UnwindSafe for Choreography
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