pub struct Frames<'a>(/* private fields */);Expand description
The frames a run’s keys sit on, in order, as KeyColumns::frames gives
them: what a key search looks through.
Implementations§
Source§impl Frames<'_>
impl Frames<'_>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn locate(&self, frame_no: f32, hint: &mut u32) -> Option<usize>
pub fn locate(&self, frame_no: f32, hint: &mut u32) -> Option<usize>
Where frame_no falls: the position of the last key at or before it, or
None before the first. The answer depends on frame_no alone, never on
hint, which is only where to look first, counted from the run’s first
key. It is left on the position found, so playback that moves a few keys
either way settles within a few steps of it, and a longer seek falls back
to a binary search.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Frames<'a>
impl<'a> RefUnwindSafe for Frames<'a>
impl<'a> Send for Frames<'a>
impl<'a> Sync for Frames<'a>
impl<'a> Unpin for Frames<'a>
impl<'a> UnsafeUnpin for Frames<'a>
impl<'a> UnwindSafe for Frames<'a>
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