[−][src]Enum jsondata::Error
Enumeration of all possible errors that shall be returned by methods and functions under this package. Refer to individual methods and functions, returning Result type, for specific error handling.
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.
IndexOutofBound(isize)
When indexing a Json array with out of bound index.
InvalidIndex(String)
When attempting index an array with an invalid index.
NotAnArray(String)
When attempting array operation, like range, index etc.., on non-array value.
InvalidContainer(String)
When attempting lookup and indexing operations like, set, delete, append, index, etc.. on values that are neither array nor object.
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 returned by string processing API, while iterating
on crate::Jsons
stream of text.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Error> for Error
[src]
impl Debug for Error
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,