Struct erg_compiler::module::cache::ModuleEntry
source · pub struct ModuleEntry {
pub id: ModId,
pub ast: Option<Module>,
pub hir: Option<HIR>,
pub module: ModuleContext,
pub status: CheckStatus,
}
Fields§
§id: ModId
§ast: Option<Module>
mainly for ELS
hir: Option<HIR>
§module: ModuleContext
§status: CheckStatus
Implementations§
source§impl ModuleEntry
impl ModuleEntry
pub const fn new( id: ModId, ast: Option<Module>, hir: Option<HIR>, ctx: ModuleContext, status: CheckStatus, ) -> Self
pub fn builtin(ctx: ModuleContext) -> Self
pub const fn cfg(&self) -> &ErgConfig
pub const fn is_complete(&self) -> bool
Trait Implementations§
source§impl Clone for ModuleEntry
impl Clone for ModuleEntry
source§fn clone(&self) -> ModuleEntry
fn clone(&self) -> ModuleEntry
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 ModuleEntry
impl Debug for ModuleEntry
Auto Trait Implementations§
impl Freeze for ModuleEntry
impl !RefUnwindSafe for ModuleEntry
impl Send for ModuleEntry
impl Sync for ModuleEntry
impl Unpin for ModuleEntry
impl !UnwindSafe for ModuleEntry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)