pub enum PointerError {
InvalidEscape(String),
MissingLeadingSlash(String),
MoveIntoChild {
from: String,
path: String,
},
}Expand description
An invalid JSON Pointer or move relationship.
Variants§
InvalidEscape(String)
A pointer contains a ~ escape other than ~0 or ~1.
MissingLeadingSlash(String)
A pointer is not empty and does not begin with /.
MoveIntoChild
A move destination is a child of its source.
Trait Implementations§
Source§impl Clone for PointerError
impl Clone for PointerError
Source§impl Debug for PointerError
impl Debug for PointerError
Source§impl Display for PointerError
impl Display for PointerError
impl Eq for PointerError
Source§impl Error for PointerError
impl Error for PointerError
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 PointerError
impl PartialEq for PointerError
impl StructuralPartialEq for PointerError
Auto Trait Implementations§
impl Forget for PointerError
impl Freeze for PointerError
impl Move for PointerError
impl RefUnwindSafe for PointerError
impl Send for PointerError
impl Sync for PointerError
impl Unpin for PointerError
impl UnsafeUnpin for PointerError
impl UnwindSafe for PointerError
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