pub struct Module { /* private fields */ }Implementations§
Source§impl Module
impl Module
pub fn from_file(file_path: &str) -> Result<Self, LoadError>
pub fn types(&self) -> &[FunctionType]
pub fn imports(&self) -> &[ImportEntry]
pub fn exports(&self) -> &[ExportEntry]
pub fn functions(&self) -> &[Function]
pub fn get_func(&self, index: u32) -> Option<&Function>
pub fn globals(&self) -> &[Global]
pub fn tables(&self) -> &[TableType]
pub fn memories(&self) -> &[MemoryType]
pub fn element_entries(&self) -> &[ElementSegment]
pub fn data_entries(&self) -> &[DataSegment]
pub fn start_func(&self) -> Option<u32>
pub fn custom_sections(&self) -> &[CustomSection]
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin 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