[−][src]Struct melon::ProgramBuilder
A builder for generating Program
s
Methods
impl ProgramBuilder
[src]
pub fn new(system_id: &str) -> ProgramBuilder
[src]
Creates a new ProgramBuilder
with the given system_id
pub fn instructions(self, instructions: Vec<Instruction>) -> ProgramBuilder
[src]
Adds instructions to the builder
pub fn entry_point(self, entry_point: Address) -> ProgramBuilder
[src]
Adds an entry point to the builder
pub fn mem_pages(self, mem_pages: u8) -> ProgramBuilder
[src]
Adds a requirement for memory pages to the builder
pub fn gen(&self) -> Program
[src]
Generates a Program
with the given setup
Auto Trait Implementations
impl RefUnwindSafe for ProgramBuilder
impl Send for ProgramBuilder
impl Sync for ProgramBuilder
impl Unpin for ProgramBuilder
impl UnwindSafe for ProgramBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,