Struct jsonptr::ReplaceTokenError
source · pub struct ReplaceTokenError {
pub index: usize,
pub count: usize,
pub pointer: Pointer,
}
Expand description
Returned from Pointer::replace_token
when the provided index is out of
bounds.
Fields§
§index: usize
The index of the token that was out of bounds.
count: usize
The number of tokens in the Pointer
.
pointer: Pointer
The subject Pointer
.
Trait Implementations§
source§impl Clone for ReplaceTokenError
impl Clone for ReplaceTokenError
source§fn clone(&self) -> ReplaceTokenError
fn clone(&self) -> ReplaceTokenError
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 ReplaceTokenError
impl Debug for ReplaceTokenError
source§impl Display for ReplaceTokenError
impl Display for ReplaceTokenError
source§impl Error for ReplaceTokenError
impl Error for ReplaceTokenError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for ReplaceTokenError
impl PartialEq for ReplaceTokenError
impl Eq for ReplaceTokenError
impl StructuralPartialEq for ReplaceTokenError
Auto Trait Implementations§
impl Freeze for ReplaceTokenError
impl RefUnwindSafe for ReplaceTokenError
impl Send for ReplaceTokenError
impl Sync for ReplaceTokenError
impl Unpin for ReplaceTokenError
impl UnwindSafe for ReplaceTokenError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.