pub enum RegionError {
InvalidCombinationOperator,
InvalidDimension,
GrayScaleOutOfRange,
}Expand description
Errors related to region parameters.
Variants§
InvalidCombinationOperator
Invalid combination operator value.
InvalidDimension
Region with invalid dimension.
GrayScaleOutOfRange
Gray-scale value exceeds pattern count.
Trait Implementations§
Source§impl Clone for RegionError
impl Clone for RegionError
Source§fn clone(&self) -> RegionError
fn clone(&self) -> RegionError
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 RegionError
impl Debug for RegionError
Source§impl Display for RegionError
impl Display for RegionError
Source§impl Error for RegionError
impl Error for RegionError
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 From<RegionError> for DecodeError
impl From<RegionError> for DecodeError
Source§fn from(e: RegionError) -> Self
fn from(e: RegionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RegionError
impl PartialEq for RegionError
impl Copy for RegionError
impl Eq for RegionError
impl StructuralPartialEq for RegionError
Auto Trait Implementations§
impl Freeze for RegionError
impl RefUnwindSafe for RegionError
impl Send for RegionError
impl Sync for RegionError
impl Unpin for RegionError
impl UnwindSafe for RegionError
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