pub struct EventTrack { /* private fields */ }Implementations§
Source§impl EventTrack
impl EventTrack
pub fn new( duration: f32, events: Vec<AnimationEvent>, ) -> Result<EventTrack, AnimationError>
pub fn duration(&self) -> f32
pub fn events(&self) -> &[AnimationEvent]
Trait Implementations§
Source§impl Clone for EventTrack
impl Clone for EventTrack
Source§fn clone(&self) -> EventTrack
fn clone(&self) -> EventTrack
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 moreAuto Trait Implementations§
impl Freeze for EventTrack
impl RefUnwindSafe for EventTrack
impl Send for EventTrack
impl Sync for EventTrack
impl Unpin for EventTrack
impl UnwindSafe for EventTrack
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