pub trait CustomCursorProvider:
Any
+ Debug
+ Send
+ Sync {
// Required method
fn is_animated(&self) -> bool;
}Required Methods§
Sourcefn is_animated(&self) -> bool
fn is_animated(&self) -> bool
Whether a cursor was backed by animation.
Implementations§
Source§impl dyn CustomCursorProvider + '_
impl dyn CustomCursorProvider + '_
Sourcepub fn cast_ref<T: CustomCursorProvider>(&self) -> Option<&T>
pub fn cast_ref<T: CustomCursorProvider>(&self) -> Option<&T>
Downcast to the backend concrete type.
Returns None if the object was not from that backend.
Sourcepub fn cast_mut<T: CustomCursorProvider>(&mut self) -> Option<&mut T>
pub fn cast_mut<T: CustomCursorProvider>(&mut self) -> Option<&mut T>
Mutable downcast to the backend concrete type.
Returns None if the object was not from that backend.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".