#[non_exhaustive]pub enum CodeRange {
Syntax,
Schema,
Limits,
Serde,
Reserved,
}Expand description
The area a Code belongs to.
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.
Syntax
Y0001–Y0999: decode, lex, parse, recovery.
Schema
Y1000–Y1999: directives, tags, duplicate keys, settings conflicts.
Limits
Y2000–Y2999: resource limits.
Serde
Y3000–Y3999: serde.
Reserved
Y9000–Y9999: reserved. Y9000 is the internal error.
Implementations§
Trait Implementations§
impl Copy for CodeRange
impl Eq for CodeRange
impl StructuralPartialEq for CodeRange
Auto Trait Implementations§
impl Freeze for CodeRange
impl RefUnwindSafe for CodeRange
impl Send for CodeRange
impl Sync for CodeRange
impl Unpin for CodeRange
impl UnsafeUnpin for CodeRange
impl UnwindSafe for CodeRange
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