Skip to main content

ParsingErrorType

Enum ParsingErrorType 

Source
pub enum ParsingErrorType<ExternalErrorType>
where ExternalErrorType: Display + Error,
{ 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>
where ExternalErrorType: Display + Error + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<ExternalErrorType> Display for ParsingErrorType<ExternalErrorType>
where ExternalErrorType: Display + Error,

Allows for simple printing of error information.

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.