Struct compile::CompileContext
source · [−]pub struct CompileContext {
pub constant_descriptors: HashMap<GlobalConstantDescriptor, ObjectRef>,
pub debug_symbol_descriptors: HashMap<DebugSpanDescriptor, DebugSymbol>,
/* private fields */
}
Expand description
A context attached to a specific function (or script)
Fields
constant_descriptors: HashMap<GlobalConstantDescriptor, ObjectRef>
debug_symbol_descriptors: HashMap<DebugSpanDescriptor, DebugSymbol>
Implementations
sourceimpl CompileContext
impl CompileContext
pub fn new(context_id: ContextId, file_id: FileId) -> CompileContext
sourcepub fn gcd_gen(&mut self) -> GlobalConstantDescriptor
pub fn gcd_gen(&mut self) -> GlobalConstantDescriptor
Generate a new, unused GlobalConstantDescriptor for this context
sourcepub fn dsd_gen(&mut self) -> DebugSpanDescriptor
pub fn dsd_gen(&mut self) -> DebugSpanDescriptor
Generate a new, unused DebugSpanDescriptor for this context
Auto Trait Implementations
impl !RefUnwindSafe for CompileContext
impl !Send for CompileContext
impl !Sync for CompileContext
impl Unpin for CompileContext
impl !UnwindSafe for CompileContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more