pub enum DiagnosticKind {
MissingFields,
ExtraFields,
CastFailed,
UnknownBlockKey,
BlockFieldNotDeclared,
OrphanBlockLine,
ConstraintViolation,
RecordTruncated,
}Expand description
Recoverable parse observations (§11.2). Reported, never dropped silently.
Variants§
MissingFields
Fewer inline parts than the arity; trailing fields set to null (§7.3).
ExtraFields
More inline parts than the arity; the surplus was discarded (§7.3).
CastFailed
Typed casting failed; the field was set to null (§8.2).
UnknownBlockKey
A block key that matches no declared field (§9.3).
BlockFieldNotDeclared
A block key matching a field that is not declared [block] (§9.3).
OrphanBlockLine
A line at indent > 0 where no record is open — for example right after a field list. Discarded, and attached to the following record (§11.2).
ConstraintViolation
A declared constraint was violated — validating mode only (§8.4).
RecordTruncated
The record exceeded MAX_SYNXL_RECORD_BYTES and was truncated (§13).
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticKind
impl Clone for DiagnosticKind
Source§fn clone(&self) -> DiagnosticKind
fn clone(&self) -> DiagnosticKind
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 DiagnosticKind
Source§impl Debug for DiagnosticKind
impl Debug for DiagnosticKind
Source§impl Display for DiagnosticKind
impl Display for DiagnosticKind
impl Eq for DiagnosticKind
Source§impl PartialEq for DiagnosticKind
impl PartialEq for DiagnosticKind
impl StructuralPartialEq for DiagnosticKind
Auto Trait Implementations§
impl Freeze for DiagnosticKind
impl RefUnwindSafe for DiagnosticKind
impl Send for DiagnosticKind
impl Sync for DiagnosticKind
impl Unpin for DiagnosticKind
impl UnsafeUnpin for DiagnosticKind
impl UnwindSafe for DiagnosticKind
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