pub enum ContextValue {
Show 16 variants
Background,
Builder(Arc<IRBuilder>),
SymbolType(Arc<RwLock<HashMap<String, Type>>>),
AliasType(Arc<RwLock<HashMap<String, Type>>>),
LLVMContext(Rc<Mutex<LLVMContext>>),
LLVMModule(Rc<RwLock<LLVMModule>>),
ModuleSlotMap(Arc<RwLock<SlotMap<DefaultKey, Module>>>),
Scope(Scope),
Flag(Arc<RwLock<bool>>),
Function(FunctionValue),
Type(Type),
LocalVariable(Arc<RwLock<Vec<String>>>),
CaptureVariable(Arc<RwLock<Vec<(String, Type)>>>),
TypeTable(Rc<RwLock<HashMap<Type, LLVMType>>>),
LoopBlock(LLVMBasicBlockRef),
DefaultExpr(Arc<RwLock<HashMap<String, Box<ExprNode>>>>),
}
Variants§
Background
Builder(Arc<IRBuilder>)
SymbolType(Arc<RwLock<HashMap<String, Type>>>)
AliasType(Arc<RwLock<HashMap<String, Type>>>)
LLVMContext(Rc<Mutex<LLVMContext>>)
LLVMModule(Rc<RwLock<LLVMModule>>)
ModuleSlotMap(Arc<RwLock<SlotMap<DefaultKey, Module>>>)
Scope(Scope)
Flag(Arc<RwLock<bool>>)
Function(FunctionValue)
Type(Type)
LocalVariable(Arc<RwLock<Vec<String>>>)
CaptureVariable(Arc<RwLock<Vec<(String, Type)>>>)
TypeTable(Rc<RwLock<HashMap<Type, LLVMType>>>)
LoopBlock(LLVMBasicBlockRef)
DefaultExpr(Arc<RwLock<HashMap<String, Box<ExprNode>>>>)
Implementations§
Trait Implementations§
Source§impl Clone for ContextValue
impl Clone for ContextValue
Source§fn clone(&self) -> ContextValue
fn clone(&self) -> ContextValue
Returns a duplicate 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 ContextValue
impl Debug for ContextValue
Auto Trait Implementations§
impl Freeze for ContextValue
impl !RefUnwindSafe for ContextValue
impl !Send for ContextValue
impl !Sync for ContextValue
impl Unpin for ContextValue
impl !UnwindSafe for ContextValue
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