pub enum LowerError {
Unsupported(&'static str, Pos),
Exceeds(&'static str, Pos),
Invalid(String),
}Expand description
Why a program does not lower.
Variants§
Unsupported(&'static str, Pos)
A construct this slice does not lower yet, and where the program uses it.
Exceeds(&'static str, Pos)
A table larger than the LIR’s ids can index.
Invalid(String)
The lowered program fails verify, which is a fault in lowering.
Implementations§
Trait Implementations§
Source§impl Clone for LowerError
impl Clone for LowerError
Source§impl Debug for LowerError
impl Debug for LowerError
Source§impl Display for LowerError
impl Display for LowerError
impl Eq for LowerError
Source§impl From<LowerError> for Error
impl From<LowerError> for Error
Source§fn from(e: LowerError) -> Self
fn from(e: LowerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LowerError
impl PartialEq for LowerError
impl StructuralPartialEq for LowerError
Auto Trait Implementations§
impl Freeze for LowerError
impl RefUnwindSafe for LowerError
impl Send for LowerError
impl Sync for LowerError
impl Unpin for LowerError
impl UnsafeUnpin for LowerError
impl UnwindSafe for LowerError
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