pub enum PointerErrorKind {
Show 13 variants
InvalidSyntax,
InvalidEscape,
EmptyDocument,
MissingValue,
TypeMismatch,
InvalidIndex,
IndexOutOfBounds,
DashNotAllowed,
NonStringKey,
AmbiguousKey,
UnresolvedAlias,
AliasCycle,
Semantic,
}Expand description
Classification of a JSON Pointer parse or resolution failure.
Variants§
InvalidSyntax
The whole pointer has invalid syntax.
InvalidEscape
A reference token contains an invalid ~ escape.
EmptyDocument
The selected YAML document has no root node.
MissingValue
A mapping member or sequence item does not exist.
TypeMismatch
A reference token was evaluated against a scalar.
InvalidIndex
A sequence token is not a canonical unsigned index.
IndexOutOfBounds
A canonical sequence index is larger than the sequence.
DashNotAllowed
The special - token was used outside an add destination.
NonStringKey
A traversed YAML mapping contains a non-string key.
AmbiguousKey
More than one mapping key matches the token.
UnresolvedAlias
An alias has no preceding anchor binding.
AliasCycle
An alias chain is cyclic.
Semantic
A YAML semantic operation failed during resolution.
Trait Implementations§
Source§impl Clone for PointerErrorKind
impl Clone for PointerErrorKind
Source§fn clone(&self) -> PointerErrorKind
fn clone(&self) -> PointerErrorKind
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 moreimpl Copy for PointerErrorKind
Source§impl Debug for PointerErrorKind
impl Debug for PointerErrorKind
impl Eq for PointerErrorKind
Source§impl PartialEq for PointerErrorKind
impl PartialEq for PointerErrorKind
impl StructuralPartialEq for PointerErrorKind
Auto Trait Implementations§
impl Freeze for PointerErrorKind
impl RefUnwindSafe for PointerErrorKind
impl Send for PointerErrorKind
impl Sync for PointerErrorKind
impl Unpin for PointerErrorKind
impl UnsafeUnpin for PointerErrorKind
impl UnwindSafe for PointerErrorKind
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