pub enum MaskDataDecodeError {
SizeOverflow,
InvalidDimensions,
}Expand description
Error type returned by MaskData::decode and MaskData::decode_to_slice.
Variants§
SizeOverflow
The width and height product overflows usize.
InvalidDimensions
The data buffer is too small for the given dimensions and bit depth.
Trait Implementations§
Source§impl Clone for MaskDataDecodeError
impl Clone for MaskDataDecodeError
Source§fn clone(&self) -> MaskDataDecodeError
fn clone(&self) -> MaskDataDecodeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaskDataDecodeError
impl Debug for MaskDataDecodeError
Source§impl PartialEq for MaskDataDecodeError
impl PartialEq for MaskDataDecodeError
impl Copy for MaskDataDecodeError
impl Eq for MaskDataDecodeError
impl StructuralPartialEq for MaskDataDecodeError
Auto Trait Implementations§
impl Freeze for MaskDataDecodeError
impl RefUnwindSafe for MaskDataDecodeError
impl Send for MaskDataDecodeError
impl Sync for MaskDataDecodeError
impl Unpin for MaskDataDecodeError
impl UnsafeUnpin for MaskDataDecodeError
impl UnwindSafe for MaskDataDecodeError
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