pub enum ComplianceErrorKind {
LengthInconsistent,
InvalidTag,
PredicateFailed,
CondRejected,
RecursionLimitExceeded,
InvalidChoice,
Custom(&'static str),
}Expand description
Why a value does not satisfy a format’s specification.
Variants§
LengthInconsistent
A stored or derived length does not match the corresponding value.
InvalidTag
A tag is outside the domain accepted by the format.
PredicateFailed
A Refined predicate rejected the value.
CondRejected
A conditional combinator is disabled for this value.
RecursionLimitExceeded
A recursive value exceeds the format’s configured recursion limit.
InvalidChoice
No branch of a choice accepts the value.
Custom(&'static str)
A format-specific consistency error.
Implementations§
Trait Implementations§
Source§impl Clone for ComplianceErrorKind
impl Clone for ComplianceErrorKind
Source§fn clone(&self) -> ComplianceErrorKind
fn clone(&self) -> ComplianceErrorKind
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 moreSource§impl Debug for ComplianceErrorKind
impl Debug for ComplianceErrorKind
Source§impl Display for ComplianceErrorKind
impl Display for ComplianceErrorKind
Source§impl PartialEq for ComplianceErrorKind
impl PartialEq for ComplianceErrorKind
Source§fn eq(&self, other: &ComplianceErrorKind) -> bool
fn eq(&self, other: &ComplianceErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ComplianceErrorKind
impl Eq for ComplianceErrorKind
impl StructuralPartialEq for ComplianceErrorKind
Auto Trait Implementations§
impl Freeze for ComplianceErrorKind
impl RefUnwindSafe for ComplianceErrorKind
impl Send for ComplianceErrorKind
impl Sync for ComplianceErrorKind
impl Unpin for ComplianceErrorKind
impl UnsafeUnpin for ComplianceErrorKind
impl UnwindSafe for ComplianceErrorKind
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