pub enum RustlocError {
FileRead {
path: PathBuf,
source: Error,
},
CargoMetadata(String),
InvalidGlob {
pattern: String,
message: String,
},
PathNotFound(PathBuf),
NotRustFile(PathBuf),
Io(Error),
GitError(String),
}Expand description
Errors that can occur during LOC counting
Variants§
FileRead
Failed to read a file
CargoMetadata(String)
Failed to parse Cargo.toml or workspace metadata
InvalidGlob
Invalid glob pattern
PathNotFound(PathBuf)
Path does not exist
NotRustFile(PathBuf)
Not a Rust file
Io(Error)
IO error
GitError(String)
Git operation error
Trait Implementations§
Source§impl Debug for RustlocError
impl Debug for RustlocError
Source§impl Display for RustlocError
impl Display for RustlocError
Source§impl Error for RustlocError
impl Error for RustlocError
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()
Auto Trait Implementations§
impl Freeze for RustlocError
impl !RefUnwindSafe for RustlocError
impl Send for RustlocError
impl Sync for RustlocError
impl Unpin for RustlocError
impl !UnwindSafe for RustlocError
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