Struct melon::Program [] [src]

pub struct Program {
    pub target_version: String,
    pub system_id: String,
    pub instructions: Vec<Instruction>,
    pub mem_pages: Option<Address>,
}

The container for a program

Fields

The target version of the melon API

The ID of the System the program is compiled against

The instuctions of the program

(Optional) The number of allocated memory pages (1 page = 1024 Byte)

Methods

impl Program
[src]

[src]

Loads a MsgPack encoded and gzipped melon image from the given file

[src]

Saves the program as a MsgPack encoded and gzipped image to the given file

Trait Implementations

impl Clone for Program
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Program
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Program

impl Sync for Program