Enum json_pointer::Error
[−]
[src]
pub enum Error { EndInEscape, InvalidEscape(char), NoLeadingSlash, NoSuchKey(String), NotIndexable, OutOfBounds(usize), }
An error that can be encountered by using this crate.
Variants
EndInEscape
The pointer ended with a tilde (~
), which is illegal because the tilde
is part of an escape sequence.
InvalidEscape(char)
An invalid escape sequence was encountered.
NoLeadingSlash
An error caused by not having a leading slash on the JSON pointer.
For example, the string a/b/c
is not a valid JSON pointer, while
/a/b/c
is.
This error will therefore be triggered by trying to use the URI Fragment Identifier Representation.
NoSuchKey(String)
The pointer pointed to a nonexistent key.
NotIndexable
The pointer resulted in trying to index a non-indexable type.
OutOfBounds(usize)
The pointer pointed to an out-of-bounds value in an array.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more