pub enum ErrorKind {
Show 17 variants
InvalidHeader,
UnsupportedVersion,
InvalidSchema,
InvalidType,
TypeMismatch,
InvalidRecord,
InvalidString,
InvalidArray,
InvalidMap,
InvalidDirective,
InvalidBlock,
InvalidTemplate,
DuplicateField,
DuplicateSectionId,
RecordWithoutSchema,
UnexpectedEof,
ByteOrderMark,
}Variants§
InvalidHeader
Missing or malformed #!sif v1 header.
UnsupportedVersion
Unsupported SIF version.
InvalidSchema
Malformed #schema directive.
InvalidType
Unknown or malformed type in a schema field definition.
TypeMismatch
Value does not match its declared type.
InvalidRecord
Malformed record (wrong field count, bad value, etc.).
InvalidString
Malformed string literal (bad escaping, unterminated quote).
InvalidArray
Malformed array literal.
InvalidMap
Malformed map literal.
InvalidDirective
Malformed directive.
InvalidBlock
Malformed block (missing #/block, etc.).
InvalidTemplate
Malformed template.
DuplicateField
Duplicate field name in schema.
DuplicateSectionId
Duplicate section identifier.
RecordWithoutSchema
Record appears before any schema in the section.
UnexpectedEof
Unexpected end of input.
ByteOrderMark
A BOM was found (§4: warning-level).
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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