Enum edlang_lowering::errors::LoweringError
source · pub enum LoweringError {
ModuleNotFound {
span: Span,
module: String,
file_id: usize,
},
FunctionNotFound {
span: Span,
function: String,
file_id: usize,
},
ImportNotFound {
module_span: Span,
import_span: Span,
symbol: Ident,
file_id: usize,
},
BorrowNotMutable {
span: Span,
type_span: Option<Span>,
name: String,
file_id: usize,
},
UnrecognizedType {
span: Span,
name: String,
file_id: usize,
},
IdNotFound {
span: Span,
id: DefId,
file_id: usize,
},
NotYetImplemented {
span: Span,
message: &'static str,
file_id: usize,
},
UnexpectedType {
span: Span,
found: TypeKind,
expected: TypeInfo,
file_id: usize,
},
UseOfUndeclaredVariable {
span: Span,
name: String,
file_id: usize,
},
}
Variants§
ModuleNotFound
FunctionNotFound
ImportNotFound
BorrowNotMutable
UnrecognizedType
IdNotFound
NotYetImplemented
UnexpectedType
UseOfUndeclaredVariable
Trait Implementations§
source§impl Clone for LoweringError
impl Clone for LoweringError
source§fn clone(&self) -> LoweringError
fn clone(&self) -> LoweringError
Returns a copy 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 LoweringError
impl Debug for LoweringError
source§impl Display for LoweringError
impl Display for LoweringError
source§impl Error for LoweringError
impl Error for LoweringError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 LoweringError
impl Send for LoweringError
impl Sync for LoweringError
impl Unpin for LoweringError
impl UnwindSafe for LoweringError
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