pub struct Moment {
pub index: usize,
pub progress: f32,
pub into_ms: u32,
pub shot_ms: u32,
pub t_ms: u32,
}Expand description
Everything a shot is told about a moment of its cinematic.
Fields§
§index: usizeWhich shot, counted from 0.
progress: f32How far through the shot, as ShotAt::progress.
into_ms: u32Milliseconds since the shot started.
shot_ms: u32How long the shot lasts, in milliseconds (Timeline::shot_ms).
t_ms: u32Milliseconds since the cinematic started, wrapped at its length.
Trait Implementations§
impl Copy for Moment
impl StructuralPartialEq for Moment
Auto Trait Implementations§
impl Freeze for Moment
impl RefUnwindSafe for Moment
impl Send for Moment
impl Sync for Moment
impl Unpin for Moment
impl UnsafeUnpin for Moment
impl UnwindSafe for Moment
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