CustomCursorProvider

Trait CustomCursorProvider 

Source
pub trait CustomCursorProvider:
    AsAny
    + Debug
    + Send
    + Sync {
    // Required method
    fn is_animated(&self) -> bool;
}

Required Methods§

Source

fn is_animated(&self) -> bool

Whether a cursor was backed by animation.

Implementations§

Source§

impl dyn CustomCursorProvider + '_

Source

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.

Source

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.

Source

pub fn cast<T: CustomCursorProvider>( self: Box<Self>, ) -> Result<Box<T>, Box<Self>>

Owned downcast to the backend concrete type.

Returns Err with self if the object was not from that backend.

Implementors§