Trait llvm::GetContext
[−]
[src]
pub trait GetContext { fn get_context(&self) -> &Context; }
Implemented by everything that is owned by a context.
Required Methods
fn get_context(&self) -> &Context
Returns a reference to the context that owns this value.
use llvm::*; let context = Context::new(); let module = Module::new("rowrowfightthapowa", &context.as_semi()); assert!(context == *module.get_context());
Implementors
impl GetContext for Module
impl GetContext for Type
impl GetContext for StructType
impl GetContext for FunctionType
impl GetContext for Function
impl GetContext for Value