pub struct YamlPatchError { /* private fields */ }Expand description
Failure while parsing or applying a YAML patch.
Implementations§
Source§impl YamlPatchError
impl YamlPatchError
Sourcepub const fn kind(&self) -> YamlPatchErrorKind
pub const fn kind(&self) -> YamlPatchErrorKind
Returns the phase in which the patch failed.
Sourcepub const fn operation_index(&self) -> Option<usize>
pub const fn operation_index(&self) -> Option<usize>
Returns the zero-based operation index, when one operation is involved.
Trait Implementations§
Source§impl Clone for YamlPatchError
impl Clone for YamlPatchError
Source§fn clone(&self) -> YamlPatchError
fn clone(&self) -> YamlPatchError
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 YamlPatchError
impl Debug for YamlPatchError
Source§impl Display for YamlPatchError
impl Display for YamlPatchError
impl Eq for YamlPatchError
Source§impl Error for YamlPatchError
impl Error for YamlPatchError
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 PartialEq for YamlPatchError
impl PartialEq for YamlPatchError
impl StructuralPartialEq for YamlPatchError
Auto Trait Implementations§
impl Freeze for YamlPatchError
impl RefUnwindSafe for YamlPatchError
impl Send for YamlPatchError
impl Sync for YamlPatchError
impl Unpin for YamlPatchError
impl UnsafeUnpin for YamlPatchError
impl UnwindSafe for YamlPatchError
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