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 Moduleimpl GetContext for Typeimpl GetContext for StructTypeimpl GetContext for FunctionTypeimpl GetContext for Functionimpl GetContext for Value