pub enum IncludeError {
Io(String),
CircularInclude {
path: PathBuf,
included_from: Option<PathBuf>,
},
InvalidPath(String),
}Expand description
Error from the include preprocessor.
Variants§
Io(String)
File could not be read (e.g. not found, permission). Message includes path and reason.
CircularInclude
Circular include detected. path is the file that was included again; included_from is the file that requested it (when known).
Fields
InvalidPath(String)
Invalid path (e.g. outside allowed base).
Trait Implementations§
Source§impl Clone for IncludeError
impl Clone for IncludeError
Source§fn clone(&self) -> IncludeError
fn clone(&self) -> IncludeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IncludeError
impl Debug for IncludeError
Source§impl Display for IncludeError
impl Display for IncludeError
Source§impl Error for IncludeError
impl Error for IncludeError
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()
Auto Trait Implementations§
impl Freeze for IncludeError
impl RefUnwindSafe for IncludeError
impl Send for IncludeError
impl Sync for IncludeError
impl Unpin for IncludeError
impl UnsafeUnpin for IncludeError
impl UnwindSafe for IncludeError
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