pub struct Function { /* private fields */ }Implementations§
Source§impl Function
impl Function
pub fn from_core( index: usize, function: &CoreFunction, program: &CoreProgram, ) -> SimpleResult<Function>
pub fn from_core_extern( index: usize, extern_: &CoreExtern, program: &CoreProgram, ) -> SimpleResult<Function>
pub fn to_header_bytes(&self, assembly: &Assembly) -> SimpleResult<Vec<u8>>
pub fn to_body_bytes( &self, ops: &HashMap<String, (u64, Option<CoreType>)>, data: &HashMap<String, u64>, globals: &HashMap<String, u64>, assembly: &Assembly, ) -> SimpleResult<Vec<u8>>
pub fn index(&self) -> usize
pub fn id(&self) -> &str
pub fn params(&self) -> &[Variable]
pub fn typeid(&self) -> &Option<CoreType>
pub fn locals(&self) -> &[Variable]
pub fn body(&self) -> &[CoreBlockOp]
pub fn external(&self) -> &Option<(String, String)>
pub fn export(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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