inkwell::context

Trait 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>