pub enum FrontError {
Diagnostics(Vec<Diag>),
Core(CoreError),
}Expand description
Outcome of a front-end stage: diagnostics (user fault, exit 2 when any is an error) or a non-diagnostic core failure.
Variants§
Diagnostics(Vec<Diag>)
Structured findings to render (at least one has Severity::Error).
Core(CoreError)
An IO or internal failure outside the diagnostics model.
Implementations§
Trait Implementations§
Source§impl Debug for FrontError
impl Debug for FrontError
Source§impl Display for FrontError
impl Display for FrontError
Source§impl Error for FrontError
impl Error for FrontError
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 !RefUnwindSafe for FrontError
impl !UnwindSafe for FrontError
impl Freeze for FrontError
impl Send for FrontError
impl Sync for FrontError
impl Unpin for FrontError
impl UnsafeUnpin for FrontError
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