Struct portus::lang::Bin [−][src]
Instruction-level representation of a datapath program.
Fields
events: Vec<Event>
instrs: Vec<Instr>
Methods
impl Bin
[src]
impl Bin
pub fn compile_prog(p: &Prog, scope: &mut Scope) -> Result<Self>
[src]
pub fn compile_prog(p: &Prog, scope: &mut Scope) -> Result<Self>
Take a Prog
, which is a Vec<portus::lang::prog::Event>
, and turn it into
a Bin
, which is a Vec<portus::lang::datapath::Event>
and a Vec<Instr>
.
impl Bin
[src]
impl Bin
Serialize a Bin to bytes for transfer to the datapath
Trait Implementations
impl Clone for Bin
[src]
impl Clone for Bin
fn clone(&self) -> Bin
[src]
fn clone(&self) -> Bin
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Bin
[src]
impl Debug for Bin
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Bin
[src]
impl Eq for Bin
impl PartialEq for Bin
[src]
impl PartialEq for Bin
fn eq(&self, other: &Bin) -> bool
[src]
fn eq(&self, other: &Bin) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Bin) -> bool
[src]
fn ne(&self, other: &Bin) -> bool
This method tests for !=
.
impl IntoIterator for Bin
[src]
impl IntoIterator for Bin