pub struct BufferRow(pub u32);Expand description
A buffer row, 0-based — the gutter’s printed line number.
A different newtype from DisplayRow so “which number do I print for
this display row” can never be fed a display row by accident.
TabMap::row_info returns Some for every row here; the Option in its
signature lets a caller cope with a display row that has no printed line
number.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for BufferRow
impl Eq for BufferRow
Source§impl Ord for BufferRow
impl Ord for BufferRow
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BufferRow
impl PartialOrd for BufferRow
impl StructuralPartialEq for BufferRow
Auto Trait Implementations§
impl Freeze for BufferRow
impl RefUnwindSafe for BufferRow
impl Send for BufferRow
impl Sync for BufferRow
impl Unpin for BufferRow
impl UnsafeUnpin for BufferRow
impl UnwindSafe for BufferRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.