[][src]Enum access_json::QueryParseErr

pub enum QueryParseErr {
    BadCharacter(usize),
    MissingField,
    MissingNumber(usize),
    BadArray(usize),
    BadField(usize),
    UnexpectedEOF(char),
    Unexpected(usizechar),
    BadIndex(usizeString),
}

An enum representing errors possible while parsing a query.

All usize fields in these errors represent the character index where the parser detected the failure.

Variants

BadCharacter(usize)

Each parsable element must start with '.' or '['

MissingField

Need a field name; encountered a ".." in the query.

MissingNumber(usize)

Need a number; encountered a "[]" in the query.

BadArray(usize)

Got some kind of non-decimal digit inside the brackets "[]".

BadField(usize)

Got some kind of bad character (or whitespace) inside a '.'

UnexpectedEOF(char)

Reached the end of the string while looking for a specific character (probably ']')

Unexpected(usizechar)

Found a strange character at the given position.

BadIndex(usizeString)

Could not parse the number in your brackets to a usize. String is the IntError in question.

Trait Implementations

impl Clone for QueryParseErr[src]

impl Debug for QueryParseErr[src]

impl Display for QueryParseErr[src]

impl Eq for QueryParseErr[src]

impl Error for QueryParseErr[src]

impl PartialEq<QueryParseErr> for QueryParseErr[src]

impl Serialize for QueryParseErr[src]

impl StructuralEq for QueryParseErr[src]

impl StructuralPartialEq for QueryParseErr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.