pub struct PlaybackSpan {
pub from: f64,
pub to: f64,
pub includes_start: bool,
}Expand description
A stretch of timeline the playhead moved over in one tick.
from is where the playhead started and to where it stopped, so to < from when playing backward. A span covers the times it moved onto, to
included, and its start only when includes_start is set: when playback
began there or wrapped around to it.
Fields§
§from: f64§to: f64§includes_start: boolImplementations§
Trait Implementations§
Source§impl Clone for PlaybackSpan
impl Clone for PlaybackSpan
Source§fn clone(&self) -> PlaybackSpan
fn clone(&self) -> PlaybackSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlaybackSpan
Source§impl Debug for PlaybackSpan
impl Debug for PlaybackSpan
Source§impl PartialEq for PlaybackSpan
impl PartialEq for PlaybackSpan
impl StructuralPartialEq for PlaybackSpan
Auto Trait Implementations§
impl Forget for PlaybackSpan
impl Freeze for PlaybackSpan
impl Move for PlaybackSpan
impl RefUnwindSafe for PlaybackSpan
impl Send for PlaybackSpan
impl Sync for PlaybackSpan
impl Unpin for PlaybackSpan
impl UnsafeUnpin for PlaybackSpan
impl UnwindSafe for PlaybackSpan
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