Enum jsonptr::MalformedPointerError
source · pub enum MalformedPointerError {
NoLeadingSlash(String),
InvalidEncoding(String),
NotUtf8(NotUtf8Error),
}Expand description
Indicates that a Pointer was malformed.
Variants§
NoLeadingSlash(String)
Indicates that the Pointer was malformed because it did not contain a
leading slash ('/').
InvalidEncoding(String)
Indicates that the Pointer was malformed because it contained invalid encoding.
NotUtf8(NotUtf8Error)
NonUTF8
Trait Implementations§
source§impl Clone for MalformedPointerError
impl Clone for MalformedPointerError
source§fn clone(&self) -> MalformedPointerError
fn clone(&self) -> MalformedPointerError
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 MalformedPointerError
impl Debug for MalformedPointerError
source§impl Display for MalformedPointerError
impl Display for MalformedPointerError
source§impl Error for MalformedPointerError
impl Error for MalformedPointerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<FromUtf8Error> for MalformedPointerError
impl From<FromUtf8Error> for MalformedPointerError
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<NotUtf8Error> for MalformedPointerError
impl From<NotUtf8Error> for MalformedPointerError
source§fn from(err: NotUtf8Error) -> Self
fn from(err: NotUtf8Error) -> Self
Converts to this type from the input type.
source§impl PartialEq for MalformedPointerError
impl PartialEq for MalformedPointerError
source§fn eq(&self, other: &MalformedPointerError) -> bool
fn eq(&self, other: &MalformedPointerError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MalformedPointerError
impl StructuralPartialEq for MalformedPointerError
Auto Trait Implementations§
impl RefUnwindSafe for MalformedPointerError
impl Send for MalformedPointerError
impl Sync for MalformedPointerError
impl Unpin for MalformedPointerError
impl UnwindSafe for MalformedPointerError
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