Struct portus::lang::Scope [−][src]
pub struct Scope { pub program_uid: u32, // some fields omitted }
A mapping from variable names defined in the datapath program to their datapath register representations.
Fields
program_uid: u32
Methods
impl Scope
[src]
impl Scope
pub fn new() -> Self
[src]
pub fn new() -> Self
Define variables always accessible in the datapath, in the context of the most recent packet. All datapaths shall recognize these Names.
pub fn has(&self, name: &str) -> bool
[src]
pub fn has(&self, name: &str) -> bool
pub fn get(&self, name: &str) -> Option<&Reg>
[src]
pub fn get(&self, name: &str) -> Option<&Reg>
Trait Implementations
impl Clone for Scope
[src]
impl Clone for Scope
fn clone(&self) -> Scope
[src]
fn clone(&self) -> Scope
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 Scope
[src]
impl Debug for Scope
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 Default for Scope
[src]
impl Default for Scope
impl IntoIterator for Scope
[src]
impl IntoIterator for Scope