pub enum Cursor {
Icon(CursorIcon),
Custom(CustomCursor),
}
Expand description
See Window::set_cursor()
for more details.
Variants§
Icon(CursorIcon)
Custom(CustomCursor)
Trait Implementations§
Source§impl From<CursorIcon> for Cursor
impl From<CursorIcon> for Cursor
Source§fn from(icon: CursorIcon) -> Self
fn from(icon: CursorIcon) -> Self
Converts to this type from the input type.
Source§impl From<CustomCursor> for Cursor
impl From<CustomCursor> for Cursor
Source§fn from(custom: CustomCursor) -> Self
fn from(custom: CustomCursor) -> Self
Converts to this type from the input type.
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 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