pub enum ParseErrorCode {
NotUtf8,
InvalidKdl,
MissingZenithRoot,
UnexpectedNode,
InvalidPropertyValue,
}Expand description
Codes that identify the category of a parse error.
Variants§
NotUtf8
The input bytes are not valid UTF-8.
InvalidKdl
The UTF-8 source is not valid KDL.
MissingZenithRoot
No top-level zenith node was found in the document.
UnexpectedNode
A node appeared in a context where it is not expected.
InvalidPropertyValue
A property value could not be parsed into the expected type.
Trait Implementations§
Source§impl Clone for ParseErrorCode
impl Clone for ParseErrorCode
Source§fn clone(&self) -> ParseErrorCode
fn clone(&self) -> ParseErrorCode
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 ParseErrorCode
impl Debug for ParseErrorCode
Source§impl PartialEq for ParseErrorCode
impl PartialEq for ParseErrorCode
Source§fn eq(&self, other: &ParseErrorCode) -> bool
fn eq(&self, other: &ParseErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseErrorCode
Auto Trait Implementations§
impl Freeze for ParseErrorCode
impl RefUnwindSafe for ParseErrorCode
impl Send for ParseErrorCode
impl Sync for ParseErrorCode
impl Unpin for ParseErrorCode
impl UnsafeUnpin for ParseErrorCode
impl UnwindSafe for ParseErrorCode
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