#[non_exhaustive]pub enum DiffPathError {
NoSuchPathInDiff {
path: String,
},
}Expand description
Path lookup failures while formatting a diff.
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.
NoSuchPathInDiff
The requested path is not part of the diff being formatted.
Trait Implementations§
Source§impl Clone for DiffPathError
impl Clone for DiffPathError
Source§impl Debug for DiffPathError
impl Debug for DiffPathError
Source§impl Display for DiffPathError
impl Display for DiffPathError
impl Eq for DiffPathError
Source§impl Error for DiffPathError
impl Error for DiffPathError
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<DiffPathError> for Error
impl From<DiffPathError> for Error
Source§fn from(source: DiffPathError) -> Self
fn from(source: DiffPathError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DiffPathError
impl PartialEq for DiffPathError
impl StructuralPartialEq for DiffPathError
Auto Trait Implementations§
impl Freeze for DiffPathError
impl RefUnwindSafe for DiffPathError
impl Send for DiffPathError
impl Sync for DiffPathError
impl Unpin for DiffPathError
impl UnsafeUnpin for DiffPathError
impl UnwindSafe for DiffPathError
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