Enum edlang_lowering::errors::LoweringError
source · pub enum LoweringError {
ModuleNotFound {
span: Span,
module: String,
},
FunctionNotFound {
span: Span,
function: String,
},
ImportNotFound {
module_span: Span,
import_span: Span,
symbol: Ident,
},
BorrowNotMutable {
span: Span,
type_span: Option<Span>,
name: String,
},
UnrecognizedType {
span: Span,
name: String,
},
IdNotFound {
span: Span,
id: DefId,
},
NotYetImplemented {
span: Span,
message: &'static str,
},
UnexpectedType {
span: Span,
found: TypeKind,
expected: TypeInfo,
},
}
Variants§
ModuleNotFound
FunctionNotFound
ImportNotFound
BorrowNotMutable
UnrecognizedType
IdNotFound
NotYetImplemented
UnexpectedType
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