pub struct CrosshairWidget { /* private fields */ }Expand description
Crosshair widget for rendering the cursor on the table
Implementations§
Source§impl CrosshairWidget
impl CrosshairWidget
Sourcepub fn set_position(&mut self, row: usize, column: usize)
pub fn set_position(&mut self, row: usize, column: usize)
Update the crosshair position
Sourcepub fn position(&self) -> &CrosshairPosition
pub fn position(&self) -> &CrosshairPosition
Get the current position
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrosshairWidget
impl RefUnwindSafe for CrosshairWidget
impl Send for CrosshairWidget
impl Sync for CrosshairWidget
impl Unpin for CrosshairWidget
impl UnwindSafe for CrosshairWidget
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> 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