pub enum ReportError {
Reported {
filename: String,
line: u32,
column: u32,
msg: String,
},
Other {
msg: String,
},
}Expand description
An auxiliary datatype used by report_error to be able to
retain the structured information in case we want to use it later
to insert proper links to the file, or other formatting.
Variants§
Reported
An error reported by report_error
Other
Some other source of error. We only have the description, and no location.
Trait Implementations§
Source§impl Clone for ReportError
impl Clone for ReportError
Source§fn clone(&self) -> ReportError
fn clone(&self) -> ReportError
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 ReportError
impl Debug for ReportError
Auto Trait Implementations§
impl Freeze for ReportError
impl RefUnwindSafe for ReportError
impl Send for ReportError
impl Sync for ReportError
impl Unpin for ReportError
impl UnwindSafe for ReportError
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