Enum json_pointer::IndexError
[−]
[src]
pub enum IndexError {
NoSuchKey(String),
NotIndexable,
OutOfBounds(usize),
}An error that can be encountered when indexing using a JSON pointer.
Variants
NoSuchKey(String)The pointer pointed to a nonexistent key.
NotIndexableThe 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 IndexError[src]
fn clone(&self) -> IndexError
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
impl Debug for IndexError[src]
impl PartialEq for IndexError[src]
fn eq(&self, __arg_0: &IndexError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &IndexError) -> bool
This method tests for !=.