#[non_exhaustive]pub enum TreeFault {
Empty,
Repeated(TreePath),
Clash(TreePath),
}Expand description
Why a list of files an Error::InvalidTree is about is not a directory tree.
Non-exhaustive for the same reason Error is.
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.
Empty
It holds no file.
Repeated(TreePath)
It lists this path twice.
Clash(TreePath)
It lists a file at this path, and another file below it.
Trait Implementations§
impl Eq for TreeFault
impl StructuralPartialEq for TreeFault
Auto Trait Implementations§
impl Forget for TreeFault
impl Freeze for TreeFault
impl Move for TreeFault
impl RefUnwindSafe for TreeFault
impl Send for TreeFaultwhere
RawVecInner: Send,
impl Sync for TreeFaultwhere
RawVecInner: Sync,
impl Unpin for TreeFault
impl UnsafeUnpin for TreeFault
impl UnwindSafe for TreeFaultwhere
RawVecInner: UnwindSafe,
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