[][src]Enum jsondata::Error

pub enum Error {
    ParseFail(String),
    AddFail(String),
    SubFail(String),
    MulFail(String),
    DivFail(String),
    RemFail(String),
    NegFail(String),
    ShlFail(String),
    ShrFail(String),
    IndexFail(String),
    IndexOutofBound(isize),
    NotAnIndex(String),
    NotAnArray(String),
    NotAnObject(String),
    NotAContainer(String),
    PropertyNotFound(String),
    AppendString(String),
    InvalidNumber(String),
    JptrFail(String),
    IoError(String),
}

Variants

ParseFail(String)

Failed to parse JSON text.

AddFail(String)

Failed to add two Json values.

SubFail(String)

Failed to subract two Json values.

MulFail(String)

Failed to multiply two Json values.

DivFail(String)

Failed to divide two Json values.

RemFail(String)

Failed to find reminder between two Json values.

NegFail(String)

Failed to negate Json value.

ShlFail(String)

Failed to left shift Json value.

ShrFail(String)

Failed to right shift Json value.

IndexFail(String)

Failed to index into Json value.

IndexOutofBound(isize)

When indexing a Json array with out of bound index.

NotAnIndex(String)

When parsing an invalid array index.

NotAnArray(String)

When Json value is expected to be an array, but it is not.

NotAnObject(String)

When Json value is expected to be an object, but it is not.

NotAContainer(String)

When json-pointer is stuck with non-container type. Only array and object are treated as container type.

PropertyNotFound(String)

When trying to lookup a Json object with missing property.

AppendString(String)

While appending a non string value with Json string.

InvalidNumber(String)

Found JSON text that looks like number, but not well formed.

JptrFail(String)

Failed processing json-pointer.

IoError(String)

std::io::Error

Trait Implementations

impl PartialEq<Error> for Error[src]

impl Clone for Error[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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