pub struct ProgramBuilder { /* private fields */ }
Expand description
A builder for generating Program
s
Implementations§
Source§impl ProgramBuilder
impl ProgramBuilder
Sourcepub fn new(system_id: &str) -> ProgramBuilder
pub fn new(system_id: &str) -> ProgramBuilder
Creates a new ProgramBuilder
with the given system_id
Sourcepub fn instructions(self, instructions: Vec<Instruction>) -> ProgramBuilder
pub fn instructions(self, instructions: Vec<Instruction>) -> ProgramBuilder
Adds instructions to the builder
Sourcepub fn entry_point(self, entry_point: Address) -> ProgramBuilder
pub fn entry_point(self, entry_point: Address) -> ProgramBuilder
Adds an entry point to the builder
Sourcepub fn mem_pages(self, mem_pages: u8) -> ProgramBuilder
pub fn mem_pages(self, mem_pages: u8) -> ProgramBuilder
Adds a requirement for memory pages to the builder
Auto Trait Implementations§
impl Freeze for ProgramBuilder
impl RefUnwindSafe for ProgramBuilder
impl Send for ProgramBuilder
impl Sync for ProgramBuilder
impl Unpin for ProgramBuilder
impl UnwindSafe for ProgramBuilder
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