pub struct ShownLines(pub Vec<(u32, f32)>);Expand description
VM.3f: the window’s lines, top to bottom, each with its height in
line-heights (1.0 for an ordinary row). The host builds it from the walk it
paints with; this type owns vim’s rule for which of them H / M / L
mean, so the keyboard motion and the host’s JumpViewport action answer
from one place. Checked in vim 9.2: a count past the window clamps to the
far edge, and M is top + (lines shown − 1) / 2 — half the lines SHOWN, so
a short buffer’s middle, not the window’s.
Tuple Fields§
§0: Vec<(u32, f32)>Trait Implementations§
Source§impl Clone for ShownLines
impl Clone for ShownLines
Source§fn clone(&self) -> ShownLines
fn clone(&self) -> ShownLines
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 ShownLines
impl Debug for ShownLines
Source§impl Default for ShownLines
impl Default for ShownLines
Source§fn default() -> ShownLines
fn default() -> ShownLines
Returns the “default value” for a type. Read more
Source§impl ViewportResolver for ShownLines
impl ViewportResolver for ShownLines
Source§fn viewport_line(&self, pos: ViewportPos, count: u32) -> Option<u32>
fn viewport_line(&self, pos: ViewportPos, count: u32) -> Option<u32>
Top: the count-th line from the top (H); Bottom: the count-th
from the bottom (L); Middle: the middle line (M, count ignored).
None when the window shows nothing.Auto Trait Implementations§
impl Freeze for ShownLines
impl RefUnwindSafe for ShownLines
impl Send for ShownLines
impl Sync for ShownLines
impl Unpin for ShownLines
impl UnsafeUnpin for ShownLines
impl UnwindSafe for ShownLines
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