pub struct InstructionList { /* private fields */ }Expand description
A list of instructions.
Implementations§
Source§impl InstructionList
impl InstructionList
Sourcepub fn push(&mut self, instruction: Instruction)
pub fn push(&mut self, instruction: Instruction)
Add an instruction to the list.
Sourcepub fn goto_table(self, table_id: u8) -> Self
pub fn goto_table(self, table_id: u8) -> Self
Go to another table.
Sourcepub fn write_metadata(self, metadata: u64, mask: u64) -> Self
pub fn write_metadata(self, metadata: u64, mask: u64) -> Self
Write metadata with mask.
Sourcepub fn apply_actions(self, actions: ActionList) -> Self
pub fn apply_actions(self, actions: ActionList) -> Self
Apply actions immediately.
Sourcepub fn write_actions(self, actions: ActionList) -> Self
pub fn write_actions(self, actions: ActionList) -> Self
Write actions to action set.
Sourcepub fn clear_actions(self) -> Self
pub fn clear_actions(self) -> Self
Clear action set.
Sourcepub fn instructions(&self) -> &[Instruction]
pub fn instructions(&self) -> &[Instruction]
Get the instructions.
Trait Implementations§
Source§impl Clone for InstructionList
impl Clone for InstructionList
Source§fn clone(&self) -> InstructionList
fn clone(&self) -> InstructionList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstructionList
impl Debug for InstructionList
Source§impl Default for InstructionList
impl Default for InstructionList
Source§fn default() -> InstructionList
fn default() -> InstructionList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstructionList
impl RefUnwindSafe for InstructionList
impl Send for InstructionList
impl Sync for InstructionList
impl Unpin for InstructionList
impl UnsafeUnpin for InstructionList
impl UnwindSafe for InstructionList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more