pub struct MarkerIndex {
pub markers: Vec<MarkerEntry>,
pub evicted_total: u64,
pub epoch: u32,
}Expand description
The answer to Term::marker_index (#490) — every live marker of the active
buffer, plus the basis that says how long the answer stays usable.
The consumer keeps this and rebases per frame:
current = line - (evicted_total_now - evicted_total), valid for exactly as long
as epoch is unchanged. When the epoch moves, the held lines are wrong in a way
no offset repairs and the consumer asks again.
It reports the active buffer because an absolute index means a different thing on
each screen — the same reason markers/markers_mut route by on_alt. An
alt-screen switch therefore bumps the epoch even though no line moved: what the
answer describes changed.
Fields§
§markers: Vec<MarkerEntry>§evicted_total: u64§epoch: u32Trait Implementations§
Source§impl Clone for MarkerIndex
impl Clone for MarkerIndex
Source§fn clone(&self) -> MarkerIndex
fn clone(&self) -> MarkerIndex
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 moreSource§impl Debug for MarkerIndex
impl Debug for MarkerIndex
impl Eq for MarkerIndex
Source§impl PartialEq for MarkerIndex
impl PartialEq for MarkerIndex
impl StructuralPartialEq for MarkerIndex
Auto Trait Implementations§
impl Freeze for MarkerIndex
impl RefUnwindSafe for MarkerIndex
impl Send for MarkerIndex
impl Sync for MarkerIndex
impl Unpin for MarkerIndex
impl UnsafeUnpin for MarkerIndex
impl UnwindSafe for MarkerIndex
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