pub struct Assembly { /* private fields */ }Implementations§
Source§impl Assembly
impl Assembly
pub fn from_core(program: &CoreProgram) -> SimpleResult<Self>
pub fn to_bytes(&self, ops: &OpsDescriptor) -> SimpleResult<Vec<u8>>
pub fn magic(&self) -> &[u8; 4]
pub fn structs(&self) -> &[Struct]
pub fn globals(&self) -> &[Variable]
pub fn functions(&self) -> &[Function]
pub fn modules(&self) -> &[Module]
pub fn export_structs(&self) -> &[usize]
pub fn export_functions(&self) -> &[usize]
pub fn find_struct(&self, id: &str) -> Option<&Struct>
pub fn find_function(&self, id: &str) -> Option<&Function>
pub fn find_module_function(&self, index: usize, id: &str) -> Option<&Function>
pub fn type_size(&self, typeid: &CoreType) -> usize
pub fn find_value_type( &self, value: &CoreValue, function: &Function, data: &HashMap<String, u64>, ops: &HashMap<String, (u64, Option<CoreType>)>, ) -> SimpleResult<CoreType>
pub fn find_access_type( &self, type_: &CoreType, access: &CoreAccess, function: &Function, data: &HashMap<String, u64>, ) -> SimpleResult<CoreType>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Assembly
impl RefUnwindSafe for Assembly
impl Send for Assembly
impl Sync for Assembly
impl Unpin for Assembly
impl UnwindSafe for Assembly
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