pub enum HistoryPosition {
Live,
Selected {
absolute: u64,
},
}Expand description
Where the Time Lens cursor is.
The selected sample is named by its absolute index rather than by its distance from the newest sample, so a paused view keeps showing the same sample as new ones arrive instead of drifting backwards under the cursor (§2.1). Resolving an absolute index is index arithmetic, which is what makes seeking constant time (§21 M4).
Variants§
Live
Following the newest sample.
Selected
Pinned to one recorded sample.
Fields
§
absolute: u64The sample’s absolute index, as counted by
HistoryRing::total_recorded.
Trait Implementations§
Source§impl Clone for HistoryPosition
impl Clone for HistoryPosition
Source§fn clone(&self) -> HistoryPosition
fn clone(&self) -> HistoryPosition
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 HistoryPosition
Source§impl Debug for HistoryPosition
impl Debug for HistoryPosition
Source§impl Default for HistoryPosition
impl Default for HistoryPosition
Source§fn default() -> HistoryPosition
fn default() -> HistoryPosition
Returns the “default value” for a type. Read more
impl Eq for HistoryPosition
Source§impl Hash for HistoryPosition
impl Hash for HistoryPosition
Source§impl PartialEq for HistoryPosition
impl PartialEq for HistoryPosition
impl StructuralPartialEq for HistoryPosition
Auto Trait Implementations§
impl Freeze for HistoryPosition
impl RefUnwindSafe for HistoryPosition
impl Send for HistoryPosition
impl Sync for HistoryPosition
impl Unpin for HistoryPosition
impl UnsafeUnpin for HistoryPosition
impl UnwindSafe for HistoryPosition
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