#[non_exhaustive]pub enum ClaimVerificationError {
ExactDepthMismatch(ExactDepth),
ExactDepthIncompatible(ExactDepthError),
NonOpaqueAlpha {
row: u32,
},
NonBinaryAlpha {
row: u32,
},
Float {
required: FloatClaims,
observed: FloatClaims,
},
NotGrayscale,
}Expand description
A requested fact failed verification against the current samples.
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.
ExactDepthMismatch(ExactDepth)
Some samples do not round trip at the required code grid.
ExactDepthIncompatible(ExactDepthError)
The requested depth cannot be checked on this format.
NonOpaqueAlpha
At least one alpha sample in this view-relative row differs from maximum.
NonBinaryAlpha
At least one alpha sample in this view-relative row is neither zero nor maximum.
Float
At least one required floating-point property could not be established.
Fields
§
required: FloatClaimsThe properties the caller asked to verify.
§
observed: FloatClaimsThe properties measured on the active samples.
NotGrayscale
The samples could not be proven grayscale.
Trait Implementations§
Source§impl Clone for ClaimVerificationError
impl Clone for ClaimVerificationError
Source§fn clone(&self) -> ClaimVerificationError
fn clone(&self) -> ClaimVerificationError
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 ClaimVerificationError
Source§impl Debug for ClaimVerificationError
impl Debug for ClaimVerificationError
Source§impl Display for ClaimVerificationError
impl Display for ClaimVerificationError
impl Eq for ClaimVerificationError
Source§impl Error for ClaimVerificationError
impl Error for ClaimVerificationError
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 ClaimVerificationError
impl PartialEq for ClaimVerificationError
impl StructuralPartialEq for ClaimVerificationError
Auto Trait Implementations§
impl Freeze for ClaimVerificationError
impl RefUnwindSafe for ClaimVerificationError
impl Send for ClaimVerificationError
impl Sync for ClaimVerificationError
impl Unpin for ClaimVerificationError
impl UnsafeUnpin for ClaimVerificationError
impl UnwindSafe for ClaimVerificationError
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