Enum json_pointer_simd::IndexError
source · pub enum IndexError {
NoSuchKey(String),
NotIndexable,
OutOfBounds(usize),
}
Expand description
An error that can be encountered when indexing using a JSON pointer.
Variants§
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§
source§impl Clone for IndexError
impl Clone for IndexError
source§fn clone(&self) -> IndexError
fn clone(&self) -> IndexError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IndexError
impl Debug for IndexError
source§impl PartialEq for IndexError
impl PartialEq for IndexError
source§fn eq(&self, other: &IndexError) -> bool
fn eq(&self, other: &IndexError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IndexError
Auto Trait Implementations§
impl RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnwindSafe for IndexError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more