Enum ParameterErrorKind
#[non_exhaustive]
pub enum ParameterErrorKind
Details how a parameter is malformed.
Variants
-
DimensionMismatch The dimensions passed are wrong.
-
FailedAlready Repeated an operation for which error that could not be cloned was emitted already.
-
RgbCicpRequired(Cicp) The cicp is required to be RGB-like but had other matrix transforms or narrow range.
-
Generic(String) A string describing the parameter. This is discouraged and is likely to get deprecated (but not removed).
-
NoMoreData The end of the image has been reached.
-
CicpMismatch { expected: Cicp, found: Cicp } An operation expected a concrete color space but another was found.
Trait Implementations
impl Clone for ParameterErrorKind
fn clone(&self) -> ParameterErrorKind
impl Debug for ParameterErrorKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Hash for ParameterErrorKind
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ParameterErrorKind
fn eq(&self, other: &ParameterErrorKind) -> bool
impl StructuralPartialEq for ParameterErrorKind
Auto Trait Implementations
impl Freeze for ParameterErrorKind
impl RefUnwindSafe for ParameterErrorKind
impl Send for ParameterErrorKind
impl Sync for ParameterErrorKind
impl Unpin for ParameterErrorKind
impl UnsafeUnpin for ParameterErrorKind
impl UnwindSafe for ParameterErrorKind
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ParameterErrorKind
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ParameterErrorKind
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for ParameterErrorKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ParameterErrorKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ParameterErrorKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ParameterErrorKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ParameterErrorKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for ParameterErrorKind
impl<T> Pointable for ParameterErrorKind
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for ParameterErrorKind
where
T: ?Sized,
impl<T> ToOwned for ParameterErrorKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ParameterErrorKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ParameterErrorKind
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ParameterErrorKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>