#[non_exhaustive]pub enum Cursor {
Default,
Pointer,
Text,
ResizeColumn,
ResizeRow,
Move,
Grab,
Grabbing,
NotAllowed,
}Expand description
The mouse cursor a widget asks for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
The platform’s arrow.
Pointer
A hand, over something clickable.
Text
An I-beam, over editable text.
ResizeColumn
Resizing columns: a left-right arrow.
ResizeRow
Resizing rows: an up-down arrow.
Move
Moving something.
Grab
Something can be grabbed.
Grabbing
Something is being dragged.
NotAllowed
The action is not allowed.
Trait Implementations§
impl Copy for Cursor
impl Eq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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