pub struct Handlers;Expand description
Utility method for setting empty handlers
Implementations§
Source§impl Handlers
impl Handlers
Sourcepub const NONE: Option<&'static Handler<NoHandler>> = None
pub const NONE: Option<&'static Handler<NoHandler>> = None
None for any callback parameter — pins the callback generic to
NoHandler so type inference works without a per-callback helper or
turbofish. Replaces Handlers::no_available_image_handler() /
no_unavailable_image_handler() / no_reserved_value_supplier_handler()
/ … with one constant. Parallels Option::None.
Auto Trait Implementations§
impl Freeze for Handlers
impl RefUnwindSafe for Handlers
impl Send for Handlers
impl Sync for Handlers
impl Unpin for Handlers
impl UnsafeUnpin for Handlers
impl UnwindSafe for Handlers
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