pub struct VmAssembly { /* private fields */ }Implementations§
Source§impl VmAssembly
impl VmAssembly
pub fn new(bytes: Vec<u8>) -> SimpleResult<Self>
pub fn export_structs(&self) -> &HashMap<String, usize>
pub fn export_functions(&self) -> &HashMap<String, usize>
pub fn structs(&self) -> &[Struct]
pub fn functions(&self) -> &[Function]
pub fn data(&self) -> &[Data]
pub fn globals_size(&self) -> usize
pub fn ops_map(&self) -> &[String]
pub fn functions_code(&self) -> &[FunctionBody]
pub fn struct_by_id(&self, id: &str) -> Option<&Struct>
pub fn function_by_id(&self, id: &str) -> Option<&Function>
pub fn function_body_by_id(&self, id: &str) -> Option<&FunctionBody>
pub fn struct_by_index(&self, index: usize) -> Option<&Struct>
pub fn function_by_index(&self, index: usize) -> Option<&Function>
pub fn function_body_by_index(&self, index: usize) -> Option<&FunctionBody>
pub fn type_size(&self, typeid: &Type) -> usize
Trait Implementations§
Source§impl Clone for VmAssembly
impl Clone for VmAssembly
Source§fn clone(&self) -> VmAssembly
fn clone(&self) -> VmAssembly
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VmAssembly
impl RefUnwindSafe for VmAssembly
impl Send for VmAssembly
impl Sync for VmAssembly
impl Unpin for VmAssembly
impl UnwindSafe for VmAssembly
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