[][src]Enum falcon::il::FunctionLocation

pub enum FunctionLocation {
    Instruction(usizeusize),
    Edge(usizeusize),
    EmptyBlock(usize),
}

A location indepdent of any specific instance of Function.

Variants

Instruction(usizeusize)
Edge(usizeusize)
EmptyBlock(usize)

Methods

impl FunctionLocation[src]

pub fn apply<'f>(
    &self,
    function: &'f Function
) -> Result<RefFunctionLocation<'f>>
[src]

"Apply" this FunctionLocation to a Function, returning a RefFunctionLocation.

pub fn block_index(&self) -> Option<usize>[src]

If this FunctionLocation has a valid Block target, return the index of that Instruction.

pub fn instruction_index(&self) -> Option<usize>[src]

If this FunctionLocation has a valid Instruction target, return the index of that Instruction.

Trait Implementations

impl Clone for FunctionLocation[src]

impl Debug for FunctionLocation[src]

impl<'de> Deserialize<'de> for FunctionLocation[src]

impl Display for FunctionLocation[src]

impl Eq for FunctionLocation[src]

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

impl Hash for FunctionLocation[src]

impl Ord for FunctionLocation[src]

impl PartialEq<FunctionLocation> for FunctionLocation[src]

impl PartialOrd<FunctionLocation> for FunctionLocation[src]

impl Serialize for FunctionLocation[src]

impl StructuralEq for FunctionLocation[src]

impl StructuralPartialEq for FunctionLocation[src]

Auto Trait Implementations

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.