pub trait ViewportResolver {
// Required method
fn viewport_line(&self, pos: ViewportPos, count: u32) -> Option<u32>;
}Expand description
VM.3f: which line of the window H / M / L mean. The layout — folds,
row heights, window size — stays on the host; the grammar only asks.
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".