Struct quil_rs::program::graph::InstructionBlock
source · pub struct InstructionBlock<'a> {
pub instructions: Vec<&'a Instruction>,
pub terminator: BlockTerminator<'a>,
/* private fields */
}
Expand description
An InstructionBlock of a ScheduledProgram is a group of instructions, identified by a string label, which include no control flow instructions aside from an (optional) terminating control flow instruction.
Fields§
§instructions: Vec<&'a Instruction>
§terminator: BlockTerminator<'a>
Implementations§
source§impl<'a> InstructionBlock<'a>
impl<'a> InstructionBlock<'a>
pub fn build( instructions: Vec<&'a Instruction>, terminator: Option<BlockTerminator<'a>>, program: &'a Program, custom_handler: &mut InstructionHandler ) -> ScheduleResult<Self>
pub fn get_dependency_graph(&self) -> &DependencyGraph
sourcepub fn get_instruction(&self, node_id: usize) -> Option<&Instruction>
pub fn get_instruction(&self, node_id: usize) -> Option<&Instruction>
Return a particular-indexed instruction (if present).
pub fn set_exit_condition(&mut self, terminator: BlockTerminator<'a>)
Trait Implementations§
source§impl<'a> Clone for InstructionBlock<'a>
impl<'a> Clone for InstructionBlock<'a>
source§fn clone(&self) -> InstructionBlock<'a>
fn clone(&self) -> InstructionBlock<'a>
Returns a copy 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<'a> Debug for InstructionBlock<'a>
impl<'a> Debug for InstructionBlock<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InstructionBlock<'a>
impl<'a> Send for InstructionBlock<'a>
impl<'a> Sync for InstructionBlock<'a>
impl<'a> Unpin for InstructionBlock<'a>
impl<'a> UnwindSafe for InstructionBlock<'a>
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