pub struct Context(_);Expand description
Contains all the LLVM entities - mainly modules.
Every single entity attached to it has its lifetime to enforce the rule that things from different contexts cannot interact and to preserve pointer safety.
Implementations§
Trait Implementations§
source§impl DisposeRef for Context
impl DisposeRef for Context
§type RefTo = LLVMContext
type RefTo = LLVMContext
What a reference to this type represents as a C pointer.
source§impl<'a> From<&'a Context> for LLVMContextRef
impl<'a> From<&'a Context> for LLVMContextRef
source§fn from(ty: &'a Context) -> LLVMContextRef
fn from(ty: &'a Context) -> LLVMContextRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut Context> for LLVMContextRef
impl<'a> From<&'a mut Context> for LLVMContextRef
source§fn from(ty: &'a mut Context) -> LLVMContextRef
fn from(ty: &'a mut Context) -> LLVMContextRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMContext> for &'a Context
impl<'a> From<*mut LLVMContext> for &'a Context
source§fn from(ty: LLVMContextRef) -> &'a Context
fn from(ty: LLVMContextRef) -> &'a Context
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMContext> for &'a mut Context
impl<'a> From<*mut LLVMContext> for &'a mut Context
source§fn from(ty: LLVMContextRef) -> &'a mut Context
fn from(ty: LLVMContextRef) -> &'a mut Context
Converts to this type from the input type.