pub struct CoverageGridState {
pub row_offset: usize,
pub col_offset: usize,
}Expand description
State for the coverage grid viewport (scroll offsets).
Fields§
§row_offset: usizeFirst visible row index (asset dimension).
col_offset: usizeFirst visible column index (workspace dimension).
Implementations§
Source§impl CoverageGridState
impl CoverageGridState
pub fn new() -> Self
pub fn scroll_down(&mut self, n: usize)
pub fn scroll_up(&mut self, n: usize)
pub fn scroll_right(&mut self, n: usize)
pub fn scroll_left(&mut self, n: usize)
Trait Implementations§
Source§impl Clone for CoverageGridState
impl Clone for CoverageGridState
Source§fn clone(&self) -> CoverageGridState
fn clone(&self) -> CoverageGridState
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 CoverageGridState
impl Debug for CoverageGridState
Source§impl Default for CoverageGridState
impl Default for CoverageGridState
Source§fn default() -> CoverageGridState
fn default() -> CoverageGridState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoverageGridState
impl RefUnwindSafe for CoverageGridState
impl Send for CoverageGridState
impl Sync for CoverageGridState
impl Unpin for CoverageGridState
impl UnsafeUnpin for CoverageGridState
impl UnwindSafe for CoverageGridState
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more