pub enum ErrorLocation {
File(String, Option<u32>),
HookProcessing(String),
Unknown,
// some variants omitted
}
Expand description
This enum represents where the error occured.
Variants§
File(String, Option<u32>)
The error occured in a file. The file name is available in the first parameter, while the line number (if present) is available in the second one.
HookProcessing(String)
The error occured while processing an hook. The hook name is available in the first parameter.
Unknown
There is no information about where the error occured.
Trait Implementations§
Source§impl Debug for ErrorLocation
impl Debug for ErrorLocation
Source§impl Display for ErrorLocation
impl Display for ErrorLocation
Source§impl PartialEq for ErrorLocation
impl PartialEq for ErrorLocation
impl Eq for ErrorLocation
impl StructuralPartialEq for ErrorLocation
Auto Trait Implementations§
impl Freeze for ErrorLocation
impl RefUnwindSafe for ErrorLocation
impl Send for ErrorLocation
impl Sync for ErrorLocation
impl Unpin for ErrorLocation
impl UnwindSafe for ErrorLocation
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