#[non_exhaustive]pub enum ComparisonError {
InputLimitExceeded,
InvalidJson,
InvalidDocument,
UnsupportedDocument,
AmbiguousIdentity,
OutputLimitExceeded,
Serialization,
}Expand description
Bounded errors that never include input documents, strings, or file paths.
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.
InputLimitExceeded
An input exceeded the existing renderer’s byte bound.
InvalidJson
JSON syntax, duplicate keys, nesting, or structural bounds were invalid.
InvalidDocument
A supported document contained invalid or inconsistent fields.
UnsupportedDocument
The document is not a supported completed rendered assessment.
AmbiguousIdentity
Repeated or conflicting stable identities cannot be paired safely.
OutputLimitExceeded
The complete escaped comparison would exceed its output bound.
Serialization
A display-only projection could not be encoded.
Trait Implementations§
Source§impl Clone for ComparisonError
impl Clone for ComparisonError
Source§fn clone(&self) -> ComparisonError
fn clone(&self) -> ComparisonError
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 ComparisonError
Source§impl Debug for ComparisonError
impl Debug for ComparisonError
Source§impl Display for ComparisonError
impl Display for ComparisonError
impl Eq for ComparisonError
Source§impl Error for ComparisonError
impl Error for ComparisonError
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<ReportError> for ComparisonError
impl From<ReportError> for ComparisonError
Source§fn from(error: ReportError) -> Self
fn from(error: ReportError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComparisonError
impl PartialEq for ComparisonError
impl StructuralPartialEq for ComparisonError
Auto Trait Implementations§
impl Freeze for ComparisonError
impl RefUnwindSafe for ComparisonError
impl Send for ComparisonError
impl Sync for ComparisonError
impl Unpin for ComparisonError
impl UnsafeUnpin for ComparisonError
impl UnwindSafe for ComparisonError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more