Struct spirq::parse::instr::Instruction
source · pub struct Instruction { /* private fields */ }
Implementations§
source§impl Instruction
impl Instruction
pub fn builder(op: Op) -> InstructionBuilder
pub fn into_words(self) -> Vec<u32>
Methods from Deref<Target = Instr>§
sourcepub fn word_count(&self) -> usize
pub fn word_count(&self) -> usize
Get the word count of the instruction, including the first word containing the word count and opcode.
Trait Implementations§
source§impl AsRef<[u32]> for Instruction
impl AsRef<[u32]> for Instruction
source§impl Borrow<Instr> for Instruction
impl Borrow<Instr> for Instruction
source§impl Clone for Instruction
impl Clone for Instruction
source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Debug for Instruction
impl Debug for Instruction
source§impl Deref for Instruction
impl Deref for Instruction
source§impl From<&[u32]> for Instruction
impl From<&[u32]> for Instruction
source§fn from(x: &[u32]) -> Instruction
fn from(x: &[u32]) -> Instruction
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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