#[non_exhaustive]pub enum SampleValidationError {
NonFiniteColor,
ColorOutOfRange,
AlphaOutOfRange,
NonOpaqueAlpha,
}Expand description
The numeric bound violated at the pixel reported by PixelCheckError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFiniteColor
Tagged color contains NaN or infinity.
ColorOutOfRange
Color is outside the nominal range.
AlphaOutOfRange
Alpha is outside its normalized range.
NonOpaqueAlpha
Stored alpha differs from the opaque maximum.
Trait Implementations§
Source§impl Clone for SampleValidationError
impl Clone for SampleValidationError
Source§fn clone(&self) -> SampleValidationError
fn clone(&self) -> SampleValidationError
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 SampleValidationError
Source§impl Debug for SampleValidationError
impl Debug for SampleValidationError
Source§impl Display for SampleValidationError
impl Display for SampleValidationError
impl Eq for SampleValidationError
Source§impl Error for SampleValidationError
impl Error for SampleValidationError
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 SampleValidationError
impl PartialEq for SampleValidationError
impl StructuralPartialEq for SampleValidationError
Auto Trait Implementations§
impl Freeze for SampleValidationError
impl RefUnwindSafe for SampleValidationError
impl Send for SampleValidationError
impl Sync for SampleValidationError
impl Unpin for SampleValidationError
impl UnsafeUnpin for SampleValidationError
impl UnwindSafe for SampleValidationError
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