pub enum PointerIconError {
TooLarge {
width: u32,
height: u32,
},
HotspotOutsideBitmap {
x: u32,
y: u32,
width: u32,
height: u32,
},
}Expand description
Errors returned while constructing a CustomPointerIcon.
Variants§
TooLarge
The bitmap is larger than MAX_POINTER_ICON_SIZE in one dimension.
Fields
HotspotOutsideBitmap
The hotspot lies outside the bitmap.
Trait Implementations§
Source§impl Clone for PointerIconError
impl Clone for PointerIconError
Source§fn clone(&self) -> PointerIconError
fn clone(&self) -> PointerIconError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointerIconError
Source§impl Debug for PointerIconError
impl Debug for PointerIconError
Source§impl Display for PointerIconError
impl Display for PointerIconError
impl Eq for PointerIconError
Source§impl Error for PointerIconError
impl Error for PointerIconError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PointerIconError
impl PartialEq for PointerIconError
impl StructuralPartialEq for PointerIconError
Auto Trait Implementations§
impl Freeze for PointerIconError
impl RefUnwindSafe for PointerIconError
impl Send for PointerIconError
impl Sync for PointerIconError
impl Unpin for PointerIconError
impl UnsafeUnpin for PointerIconError
impl UnwindSafe for PointerIconError
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