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)>
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 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
impl Eq for MalformedPointerError
impl StructuralPartialEq for MalformedPointerError
Auto Trait Implementations§
impl Freeze for MalformedPointerError
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
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.