[−][src]Enum dir_assert::Error
Variants
Critical(String)
Error with system IO, unrecoverable, ceasing traverse of current directory
ExtraExpected(PathBuf)
Extra expected item exists
ExtraActual(PathBuf)
Extra actual item exists
Found filename and directory sharing same name and path
Two files with same path have different contents
MissingPath(PathBuf)
Top level directories are missing (eg. actual folder wasn't actually created)
Methods
impl Error
[src]
pub fn new_critical<S: Into<String>>(message: S) -> Self
[src]
pub fn new_extra_expected<P: Into<PathBuf>>(path: P) -> Self
[src]
pub fn new_extra_actual<P: Into<PathBuf>>(path: P) -> Self
[src]
pub fn new_invalid_comparison<PE: Into<PathBuf>, PA: Into<PathBuf>>(
expected: PE,
actual: PA
) -> Self
[src]
expected: PE,
actual: PA
) -> Self
pub fn new_file_contents_mismatch<PE: Into<PathBuf>, PA: Into<PathBuf>>(
expected: PE,
actual: PA,
line: usize
) -> Self
[src]
expected: PE,
actual: PA,
line: usize
) -> Self
pub fn new_missing_path<P: Into<PathBuf>>(path: P) -> Self
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,