pub struct App { /* private fields */ }
Implementations§
Source§impl App
impl App
pub fn new(imports: Vec<Import>) -> Self
pub fn add_type(&mut self, f: FunctionType) -> u32
pub fn add_function(&mut self, f: Function) -> u32
pub fn add_elements(&mut self, elements_offset: u32, els: Vec<Element>)
pub fn add_data(&mut self, g: Data) -> u32
pub fn add_global(&mut self, g: Global)
pub fn add_table(&mut self, g: Table)
pub fn write_to_file(&mut self, file_name: &str) -> Result<(), Error>
pub fn get_function_index(&self, func: &Function) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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