pub struct FatalError(/* private fields */);
Expand description
Error to be returned when otherwise no meaningful information can be returned.
Can’t be created unless a diagnostic has been emitted, and thus a DiagnosticVoucher
has been obtained. (See comment on TypeError
)
Implementations§
Source§impl FatalError
impl FatalError
Sourcepub fn new(voucher: DiagnosticVoucher) -> Self
pub fn new(voucher: DiagnosticVoucher) -> Self
Create a FatalError
instance, given a “voucher”
obtained by emitting an error via an AnalyzerContext
.
Trait Implementations§
Source§impl Debug for FatalError
impl Debug for FatalError
Source§impl From<AlreadyDefined> for FatalError
impl From<AlreadyDefined> for FatalError
Source§fn from(err: AlreadyDefined) -> Self
fn from(err: AlreadyDefined) -> Self
Converts to this type from the input type.
Source§impl From<ConstEvalError> for FatalError
impl From<ConstEvalError> for FatalError
Source§fn from(err: ConstEvalError) -> Self
fn from(err: ConstEvalError) -> Self
Converts to this type from the input type.
Source§impl From<FatalError> for ConstEvalError
impl From<FatalError> for ConstEvalError
Source§fn from(err: FatalError) -> Self
fn from(err: FatalError) -> Self
Converts to this type from the input type.
Source§impl From<FatalError> for TypeError
impl From<FatalError> for TypeError
Source§fn from(err: FatalError) -> Self
fn from(err: FatalError) -> Self
Converts to this type from the input type.
Source§impl From<IncompleteItem> for FatalError
impl From<IncompleteItem> for FatalError
Source§fn from(err: IncompleteItem) -> Self
fn from(err: IncompleteItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FatalError
impl RefUnwindSafe for FatalError
impl Send for FatalError
impl Sync for FatalError
impl Unpin for FatalError
impl UnwindSafe for FatalError
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