Struct polkavm_common::writer::ProgramBlobBuilder
source · pub struct ProgramBlobBuilder { /* private fields */ }
Implementations§
source§impl ProgramBlobBuilder
impl ProgramBlobBuilder
pub fn new() -> Self
pub fn set_ro_data_size(&mut self, size: u32)
pub fn set_rw_data_size(&mut self, size: u32)
pub fn set_stack_size(&mut self, size: u32)
pub fn set_ro_data(&mut self, data: Vec<u8>)
pub fn set_rw_data(&mut self, data: Vec<u8>)
pub fn add_import(&mut self, import: ProgramImport<'_>)
pub fn add_export(&mut self, export: ProgramExport<'_>)
pub fn set_jump_table(&mut self, jump_table: &[u32])
pub fn set_code(&mut self, code: &[Instruction])
pub fn add_custom_section(&mut self, section: u8, contents: Vec<u8>)
pub fn into_vec(self) -> Vec<u8>
Trait Implementations§
source§impl Default for ProgramBlobBuilder
impl Default for ProgramBlobBuilder
source§fn default() -> ProgramBlobBuilder
fn default() -> ProgramBlobBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgramBlobBuilder
impl RefUnwindSafe for ProgramBlobBuilder
impl Send for ProgramBlobBuilder
impl Sync for ProgramBlobBuilder
impl Unpin for ProgramBlobBuilder
impl UnwindSafe for ProgramBlobBuilder
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