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.
Type πŸ”’
Corresponds to LLVMTypeRef.
Value πŸ”’
Corresponds to LLVMValueRef.

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.

Type AliasesΒ§

PhantomInvariantLifetime πŸ”’
FIXME(Zalathar): Use the stdlib’s PhantomInvariantLifetime when its API is settled.

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.
TypeRaw πŸ”’
Pointee type of the raw pointer wrapped by Type.
ValueRaw πŸ”’
Pointee type of the raw pointer wrapped by Value.