pub enum FilePathError {
InvalidPath(String),
FileReadError(String, Error),
RepeatedFile,
}Expand description
Augmented std::io::Error so that it shows what line is causing the problem.
Variants§
InvalidPath(String)
A std::io::ErrorKind::NotFound error with the offending line in the string parameter
FileReadError(String, Error)
Any other file read error that is not NotFound
RepeatedFile
A css file is imported twice, or there is a dependency loop
Trait Implementations§
Source§impl Debug for FilePathError
impl Debug for FilePathError
Source§impl Display for FilePathError
impl Display for FilePathError
Source§impl Error for FilePathError
impl Error for FilePathError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for FilePathError
impl !RefUnwindSafe for FilePathError
impl Send for FilePathError
impl Sync for FilePathError
impl Unpin for FilePathError
impl !UnwindSafe for FilePathError
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