Skip to main content

Module branded

Module branded 

Source
Expand description

Lifetime-branded references to things manipulated by the LLVM bindings.

Re-exportsยง

use std::marker::PhantomData; ๐Ÿ”’
use std::ptr; ๐Ÿ”’

Structsยง

Context ๐Ÿ”’
Corresponds to LLVMContextRef.
Module ๐Ÿ”’
Corresponds to LLVMModuleRef.

Functionsยง

wrap_llcx ๐Ÿ”’ โš 
Converts an unbranded pointer-to-context to a lifetime-branded Context.
wrap_llmod ๐Ÿ”’ โš 
Converts an unbranded pointer-to-module to a lifetime-branded Module.

Foreign Typesยง

ContextRaw ๐Ÿ”’
Pointee of the raw pointer that is wrapped by a lifetime-branded Context.
ModuleRaw ๐Ÿ”’
Pointee of the raw pointer that is wrapped by a lifetime-branded Module.