pub struct Module {
pub name: String,
pub source_file_name: String,
pub data_layout: DataLayout,
pub target_triple: Option<String>,
pub functions: Vec<Function>,
pub global_vars: Vec<GlobalVariable>,
pub global_aliases: Vec<GlobalAlias>,
pub inline_assembly: String,
pub types: Types,
}Expand description
Fields
name: StringThe name of the module
source_file_name: Stringdata_layout: DataLayouttarget_triple: Option<String>functions: Vec<Function>Functions which are defined (not just declared) in this Module.
See LLVM 14 docs on Functions
global_vars: Vec<GlobalVariable>global_aliases: Vec<GlobalAlias>inline_assembly: Stringtypes: TypesHolds a reference to all of the Types used in the Module, and
facilitates lookups so you can get a TypeRef to the Type you want.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more