[−][src]Enum cfg_lib::config::RecognizerError
This represents the low-level errors which can occur when parsing CFG source. They all include the source location where the error was detected.
Variants
Io(Location)This represents an I/O error (e.g. a network or disk read error).
This represents an unexpected character at the start of a token.
This represents a character which is invalid in the middle of a token.
InvalidNumber(Location)This represents an invalid number.
UnterminatedString(Location)This represents an unterminated string. The start of the string is returned.
InvalidString(Location)This represents where an invalid string was detected. An example would be a back-tick string containing a newline character.
This represents where a particular token was expected but not found. The text of the expected token, the text of the actual token and the location are returned.
This represents where a value was expected but not found.
This represents where an "atom" (identifier, number, string etc.) was expected but not found.
This represents where a key (identifier or literal string) was expected but not found.
This represents where a key/value separator was expected but not found.
This represents that a valid container (mapping or list) was expected, but not found.
This representsd an invalid escape sequence.
UnexpectedListSize(Location)This represents an unexpected list size. Currently, only one-dimensional lists are allowed.
TrailingText(Location)This represents trailing text, e.g. at the end of an expression.
Trait Implementations
impl Debug for RecognizerError[src]
impl PartialEq<RecognizerError> for RecognizerError[src]
fn eq(&self, other: &RecognizerError) -> bool[src]
fn ne(&self, other: &RecognizerError) -> bool[src]
impl StructuralPartialEq for RecognizerError[src]
Auto Trait Implementations
impl RefUnwindSafe for RecognizerError
impl Send for RecognizerError
impl Sync for RecognizerError
impl Unpin for RecognizerError
impl UnwindSafe for RecognizerError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,