[][src]Struct gf::isa::Insn

pub struct Insn { /* fields omitted */ }

Execution unit of an ISA.

Methods

impl Insn[src]

pub const INLINE_MORPHEME_COUNT: usize[src]

Number of morphemes stored inline in the Insn structure. Additional morphemes will be spilled to heap.

pub const INLINE_OPERAND_COUNT: usize[src]

Number of operands stored inline in the Insn structure. Additional operands will be spilled to heap.

pub fn new() -> Self[src]

Create an empty instruction.

pub fn clear(&mut self)[src]

Clear the instruction.

pub fn morphemes(&self) -> &[MorphemeId][src]

Return the list of morphemes.

pub fn operands(&self) -> &[Operand][src]

Return the list of operands.

pub fn push_morpheme(&mut self, morpheme: MorphemeId)[src]

Push a morpheme at the end of the morpheme list.

pub fn push_operand(&mut self, operand: Operand)[src]

Push an operand at the end of the operand list.

Trait Implementations

impl Clone for Insn[src]

impl Default for Insn[src]

impl Eq for Insn[src]

impl PartialEq<Insn> for Insn[src]

impl Debug for Insn[src]

impl Hash for Insn[src]

impl StructuralPartialEq for Insn[src]

impl StructuralEq for Insn[src]

Auto Trait Implementations

impl Send for Insn

impl Sync for Insn

impl Unpin for Insn

impl UnwindSafe for Insn

impl RefUnwindSafe for Insn

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]