pub struct LinearizeError {
pub stack: Vec<(Symbol, FileSpan)>,
pub kind: LinearizeErrorKind,
}Expand description
An error that occured while linearizing a program.
This error contains both the call stack leading up
to this error, as well as the kind of error that occured.
stack is layed out as a list of function names and call
for those functions, from oldest to youngest (i.e the
current stack frame is the end of stack).
Fields§
§stack: Vec<(Symbol, FileSpan)>§kind: LinearizeErrorKindImplementations§
Trait Implementations§
Source§impl Debug for LinearizeError
impl Debug for LinearizeError
Source§impl Display for LinearizeError
impl Display for LinearizeError
Source§impl Error for LinearizeError
impl Error for LinearizeError
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()
Source§impl From<LinearizeError> for Error
impl From<LinearizeError> for Error
Source§fn from(source: LinearizeError) -> Self
fn from(source: LinearizeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinearizeError
impl !RefUnwindSafe for LinearizeError
impl !Send for LinearizeError
impl !Sync for LinearizeError
impl Unpin for LinearizeError
impl !UnwindSafe for LinearizeError
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