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§
source§impl ASTLowerer
impl ASTLowerer
pub fn new() -> Self
pub fn lower( &mut self, ast: AST, mode: &str ) -> Result<(HIR, LowerWarnings), LowerErrors>
Trait Implementations§
source§impl Debug for ASTLowerer
impl Debug for ASTLowerer
Auto Trait Implementations§
impl Freeze for ASTLowerer
impl !RefUnwindSafe for ASTLowerer
impl !Send for ASTLowerer
impl !Sync for ASTLowerer
impl Unpin for ASTLowerer
impl !UnwindSafe for ASTLowerer
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