#[non_exhaustive]pub enum EditErrorKind {
Parse,
NotFound,
Unsupported,
VerificationFailed,
InvalidEdit,
}Expand description
Coarse category of an EditError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parse
The input YAML document could not be parsed.
NotFound
The target path did not resolve unambiguously in the document.
Unsupported
The requested edit was refused conservatively (for example, anchors, aliases, tags, block scalars, multiple documents, flow entries, or ambiguous comment placement).
VerificationFailed
Post-edit re-parse or event/value verification failed.
InvalidEdit
Supplied TextEdits were unsorted, overlapping, or out of UTF-8 bounds.
Trait Implementations§
Source§impl Clone for EditErrorKind
impl Clone for EditErrorKind
impl Copy for EditErrorKind
Source§impl Debug for EditErrorKind
impl Debug for EditErrorKind
Source§impl Display for EditErrorKind
impl Display for EditErrorKind
impl Eq for EditErrorKind
Source§impl Hash for EditErrorKind
impl Hash for EditErrorKind
Source§impl PartialEq for EditErrorKind
impl PartialEq for EditErrorKind
impl StructuralPartialEq for EditErrorKind
Auto Trait Implementations§
impl Forget for EditErrorKind
impl Freeze for EditErrorKind
impl Move for EditErrorKind
impl RefUnwindSafe for EditErrorKind
impl Send for EditErrorKind
impl Sync for EditErrorKind
impl Unpin for EditErrorKind
impl UnsafeUnpin for EditErrorKind
impl UnwindSafe for EditErrorKind
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§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.