pub struct PointerError { /* private fields */ }Expand description
Structured JSON Pointer parse or resolution error.
Implementations§
Source§impl PointerError
impl PointerError
Sourcepub const fn token_index(&self) -> Option<usize>
pub const fn token_index(&self) -> Option<usize>
Returns the zero-based failing token index, when applicable.
Sourcepub const fn kind(&self) -> PointerErrorKind
pub const fn kind(&self) -> PointerErrorKind
Returns the failure classification.
Trait Implementations§
Source§impl Clone for PointerError
impl Clone for PointerError
Source§fn clone(&self) -> PointerError
fn clone(&self) -> PointerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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 From<PointerError> for YamlEditError
impl From<PointerError> for YamlEditError
Source§fn from(error: PointerError) -> YamlEditError
fn from(error: PointerError) -> YamlEditError
Converts to this type from the input type.
Source§impl PartialEq for PointerError
impl PartialEq for PointerError
impl StructuralPartialEq for PointerError
Auto Trait Implementations§
impl Freeze 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