Trait inkwell::context::AsContextRef

source ·
pub unsafe trait AsContextRef<'ctx> {
    // Required method
    fn as_ctx_ref(&self) -> LLVMContextRef;
}
Expand description

This trait abstracts an LLVM Context type and should be implemented with caution.

Required Methods§

source

fn as_ctx_ref(&self) -> LLVMContextRef

Returns the internal LLVM reference behind the type

Implementors§

source§

impl<'ctx> AsContextRef<'ctx> for &'ctx Context

source§

impl<'ctx> AsContextRef<'ctx> for ContextRef<'ctx>