pub struct Module {
pub types: Vec<FuncType>,
pub symbols: Vec<Symbol>,
pub functions: Vec<Function>,
pub aliases: Vec<(u32, u32)>,
pub segments: Vec<Segment>,
pub inits: Vec<(u32, u32)>,
pub features: Vec<String>,
pub disallowed: Vec<String>,
pub producers: Producers,
}Expand description
Everything in one object.
Fields§
§types: Vec<FuncType>§symbols: Vec<Symbol>§functions: Vec<Function>§aliases: Vec<(u32, u32)>The function symbols that are second names of a function in this object, each as the
symbol of the second name and the symbol of the function. This is the alias attribute of
GCC on a function. The two symbols have the same function index, and each one keeps its
own name and flags. A data symbol needs no entry here, because a second name of a variable
is a data symbol with the same place.
segments: Vec<Segment>§inits: Vec<(u32, u32)>The constructors, as a priority and a symbol index. 65535 is the priority of one that gave none.
features: Vec<String>The LLVM names of the features the code uses.
disallowed: Vec<String>The LLVM names of the features the object must not be linked with.
producers: ProducersImplementations§
Trait Implementations§
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.