#[non_exhaustive]pub enum ViolationKind {
Dimensionality,
Degenerate,
Disagreement,
OutOfRange,
WrongType,
}Expand description
What kind of schema condition was broken.
Kept separate from the message so a consumer can filter ( “show me only degeneracies”) without string matching.
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.
Dimensionality
Coordinate-space mismatch, e.g. a 2D direction on a 3D placement.
Degenerate
The values describe something with no extent or no unique solution: a zero-length direction, an axis parallel to its reference direction.
Disagreement
Two things that must agree do not, e.g. boolean operands of different dimensionality.
OutOfRange
A value outside the range the schema permits.
WrongType
An attribute holds an entity type the select does not admit.
Trait Implementations§
Source§impl Clone for ViolationKind
impl Clone for ViolationKind
Source§fn clone(&self) -> ViolationKind
fn clone(&self) -> ViolationKind
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 ViolationKind
Source§impl Debug for ViolationKind
impl Debug for ViolationKind
impl Eq for ViolationKind
Source§impl PartialEq for ViolationKind
impl PartialEq for ViolationKind
impl StructuralPartialEq for ViolationKind
Auto Trait Implementations§
impl Freeze for ViolationKind
impl RefUnwindSafe for ViolationKind
impl Send for ViolationKind
impl Sync for ViolationKind
impl Unpin for ViolationKind
impl UnsafeUnpin for ViolationKind
impl UnwindSafe for ViolationKind
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