pub struct MarkerLine {
pub id: MarkerId,
pub line: u32,
}Expand description
A marker’s absolute buffer line (#120 S3, v11). Unlike MarkerPosition,
this is reported for EVERY live marker — on-screen or not — so a frame-mode
consumer can place overview-ruler marks buffer-relatively (dividing by
scrollback + rows), the whole point of a ruler being to show off-viewport
anchors. The consumer joins id with its decoration registry; the ruler mark’s
colour is the consumer’s (theme-agnostic), so no kind/exit rides here.
Fields§
§id: MarkerId§line: u32Absolute buffer line, in the same [0, scrollback_len + rows) frame the
header’s scrollback_len/display_offset use.
Trait Implementations§
Source§impl Clone for MarkerLine
impl Clone for MarkerLine
Source§fn clone(&self) -> MarkerLine
fn clone(&self) -> MarkerLine
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 MarkerLine
Source§impl Debug for MarkerLine
impl Debug for MarkerLine
impl Eq for MarkerLine
Source§impl PartialEq for MarkerLine
impl PartialEq for MarkerLine
Source§fn eq(&self, other: &MarkerLine) -> bool
fn eq(&self, other: &MarkerLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkerLine
Auto Trait Implementations§
impl Freeze for MarkerLine
impl RefUnwindSafe for MarkerLine
impl Send for MarkerLine
impl Sync for MarkerLine
impl Unpin for MarkerLine
impl UnsafeUnpin for MarkerLine
impl UnwindSafe for MarkerLine
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