pub enum ParsingErrorType<ExternalErrorType>{
BothBraketsInLine,
IsolatedClosingBraket,
MissingColon,
UnknownKeyword(String),
MissingChild(String),
FailedParsingValue,
External(ExternalErrorType),
}Expand description
The type of a parsing error.
Variants§
BothBraketsInLine
Only one kind of curly brakets is allowed per line, which has been violated when this variant occurs.
IsolatedClosingBraket
A closing braket has been found where it was not expected.
MissingColon
A colon is missing between type and name of an element.
UnknownKeyword(String)
Type unknown to its parent.
MissingChild(String)
Missing child keyword.
FailedParsingValue
Failed to parse a value.
External(ExternalErrorType)
A custom type for handling parsing errors.
Trait Implementations§
Source§impl<ExternalErrorType> Debug for ParsingErrorType<ExternalErrorType>
impl<ExternalErrorType> Debug for ParsingErrorType<ExternalErrorType>
Auto Trait Implementations§
impl<ExternalErrorType> Freeze for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: Freeze,
impl<ExternalErrorType> RefUnwindSafe for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: RefUnwindSafe,
impl<ExternalErrorType> Send for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: Send,
impl<ExternalErrorType> Sync for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: Sync,
impl<ExternalErrorType> Unpin for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: Unpin,
impl<ExternalErrorType> UnsafeUnpin for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: UnsafeUnpin,
impl<ExternalErrorType> UnwindSafe for ParsingErrorType<ExternalErrorType>where
ExternalErrorType: UnwindSafe,
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