Struct erg_compiler::hir::HIR
source · pub struct HIR {
pub name: Str,
pub module: Module,
}
Expand description
High-level Intermediate Representation AST with type information added
Fields§
§name: Str
§module: Module
Implementations§
Trait Implementations§
source§impl BuildRunnable<HIR> for HIRBuilder
impl BuildRunnable<HIR> for HIRBuilder
fn build_module(&mut self) -> Result<CompleteArtifact<T>, IncompleteArtifact<T>>
source§impl Buildable<HIR> for HIRBuilder
impl Buildable<HIR> for HIRBuilder
fn inherit(cfg: ErgConfig, shared: SharedCompilerResource) -> Self
fn build( &mut self, src: String, mode: &str ) -> Result<CompleteArtifact, IncompleteArtifact>
fn pop_context(&mut self) -> Option<ModuleContext>
fn get_context(&self) -> Option<&ModuleContext>
impl Eq for HIR
impl StructuralEq for HIR
impl StructuralPartialEq for HIR
Auto Trait Implementations§
impl RefUnwindSafe for HIR
impl Send for HIR
impl Sync for HIR
impl Unpin for HIR
impl UnwindSafe for HIR
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