pub struct Beat {
pub index: usize,
pub label: &'static str,
pub local: f64,
pub progress: f64,
}Expand description
Where a point in time falls inside a Timeline (CORE-R38).
Fields§
§index: usizeIndex of the phase in the list passed to Timeline::new — skipped
zero-length phases keep their slot, so scenes can match on their own constants.
label: &'static str§local: f64Seconds since the phase started, in [0, duration).
progress: f64local / duration, in [0, 1).
Trait Implementations§
impl Copy for Beat
impl StructuralPartialEq for Beat
Auto Trait Implementations§
impl Forget for Beat
impl Freeze for Beat
impl Move for Beat
impl RefUnwindSafe for Beat
impl Send for Beat
impl Sync for Beat
impl Unpin for Beat
impl UnsafeUnpin for Beat
impl UnwindSafe for Beat
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