Struct erg_compiler::lower::ASTLowerer
source · [−]pub struct ASTLowerer { /* private fields */ }
Expand description
Singleton that checks types of an AST, and convert (lower) it into a HIR
Implementations
sourceimpl ASTLowerer
impl ASTLowerer
pub fn new() -> Self
pub fn lower(
&mut self,
ast: AST,
mode: &str
) -> Result<(HIR, LowerWarnings), LowerErrors>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ASTLowerer
impl !Send for ASTLowerer
impl !Sync for ASTLowerer
impl Unpin for ASTLowerer
impl !UnwindSafe for ASTLowerer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more