[][src]Struct melon::ProgramBuilder

pub struct ProgramBuilder { /* fields omitted */ }

A builder for generating Programs

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,