[][src]Enum falcon::il::RefFunctionLocation

pub enum RefFunctionLocation<'f> {
    Instruction(&'f Block, &'f Instruction),
    Edge(&'f Edge),
    EmptyBlock(&'f Block),
}

A location applied to a Function.

Variants

Instruction(&'f Block, &'f Instruction)
Edge(&'f Edge)
EmptyBlock(&'f Block)

Methods

impl<'f> RefFunctionLocation<'f>[src]

pub fn block(&self) -> Option<&Block>[src]

If this RefFunctionLocation references a Block, get that Block.

pub fn instruction(&self) -> Option<&Instruction>[src]

If this RefFunctionLocation references an Instruction, get that Instruction.

pub fn edge(&self) -> Option<&Edge>[src]

If this RefFunctionLocation references an Edge, get that Edge.

pub fn program_location(self, function: &'f Function) -> RefProgramLocation<'f>[src]

Quickly turn this into a RefProgramLocation

Trait Implementations

impl<'f> Clone for RefFunctionLocation<'f>[src]

impl<'f> Debug for RefFunctionLocation<'f>[src]

impl<'f> Display for RefFunctionLocation<'f>[src]

impl<'f> Eq for RefFunctionLocation<'f>[src]

impl<'f> From<RefFunctionLocation<'f>> for FunctionLocation[src]

impl<'f> Hash for RefFunctionLocation<'f>[src]

impl<'f> Ord for RefFunctionLocation<'f>[src]

impl<'f> PartialEq<RefFunctionLocation<'f>> for RefFunctionLocation<'f>[src]

impl<'f> PartialOrd<RefFunctionLocation<'f>> for RefFunctionLocation<'f>[src]

impl<'f> StructuralEq for RefFunctionLocation<'f>[src]

impl<'f> StructuralPartialEq for RefFunctionLocation<'f>[src]

Auto Trait Implementations

impl<'f> RefUnwindSafe for RefFunctionLocation<'f>

impl<'f> Send for RefFunctionLocation<'f>

impl<'f> Sync for RefFunctionLocation<'f>

impl<'f> Unpin for RefFunctionLocation<'f>

impl<'f> UnwindSafe for RefFunctionLocation<'f>

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> 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.