[][src]Struct raptor::ir::Block

pub struct Block<V: Value> { /* fields omitted */ }

Methods

impl<V: Value> Block<V>[src]

pub fn from_il(block: &Block) -> Block<Constant>[src]

pub fn index(&self) -> usize[src]

pub fn instruction(&self, index: usize) -> Option<&Instruction<V>>[src]

pub fn instruction_mut(&mut self, index: usize) -> Option<&mut Instruction<V>>[src]

pub fn instructions(&self) -> &[Instruction<V>][src]

pub fn instructions_mut(&mut self) -> &mut [Instruction<V>][src]

pub fn replace_with_nop(&mut self, index: usize) -> Result<()>[src]

pub fn prepend_operation(&mut self, operation: Operation<V>)[src]

Creates an instruction for an operation and prepends it to the beginning of the block.

Trait Implementations

impl<V: Clone + Value> Clone for Block<V>[src]

impl<V: Debug + Value> Debug for Block<V>[src]

impl<'de, V: Value> Deserialize<'de> for Block<V> where
    V: Deserialize<'de>, 
[src]

impl<V: Value> Display for Block<V>[src]

impl<V: Eq + Value> Eq for Block<V>[src]

impl<V: Hash + Value> Hash for Block<V>[src]

impl<V: Ord + Value> Ord for Block<V>[src]

impl<V: PartialEq + Value> PartialEq<Block<V>> for Block<V>[src]

impl<V: PartialOrd + Value> PartialOrd<Block<V>> for Block<V>[src]

impl<V: Value> Serialize for Block<V> where
    V: Serialize
[src]

impl<V: Value> StructuralEq for Block<V>[src]

impl<V: Value> StructuralPartialEq for Block<V>[src]

impl<V: Value> Vertex for Block<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Block<V> where
    V: RefUnwindSafe

impl<V> Send for Block<V>

impl<V> Sync for Block<V>

impl<V> Unpin for Block<V>

impl<V> UnwindSafe for Block<V> where
    V: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.