Enum edlang_lowering::errors::LoweringError
source · pub enum LoweringError {
Show 13 variants
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,
},
ParamCountMismatch {
span: Span,
has_args: usize,
needs: usize,
file_id: usize,
},
NotMutable {
span: Span,
declare_span: Option<Span>,
file_id: usize,
},
CantTakeMutableBorrow {
span: Span,
declare_span: Option<Span>,
file_id: usize,
},
NotMutableSelf {
span: Span,
path_span: Span,
file_id: usize,
},
}
Variants§
ModuleNotFound
FunctionNotFound
ImportNotFound
BorrowNotMutable
UnrecognizedType
IdNotFound
NotYetImplemented
UnexpectedType
UseOfUndeclaredVariable
ParamCountMismatch
NotMutable
CantTakeMutableBorrow
NotMutableSelf
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 Freeze for LoweringError
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