[][src]Struct falcon::il::ProgramLocation

pub struct ProgramLocation { /* fields omitted */ }

A location independent of any specific instance of Program.

Methods

impl ProgramLocation[src]

pub fn new(
    function_index: Option<usize>,
    function_location: FunctionLocation
) -> ProgramLocation
[src]

Create a new ProgramLocation from a function index and FunctionLocation

pub fn apply<'p>(&self, program: &'p Program) -> Result<RefProgramLocation<'p>>[src]

"Apply" this ProgramLocation to a Program, returning a RefProgramLocation.

pub fn function_location(&self) -> &FunctionLocation[src]

Get the FunctionLocation for this ProgramLocation

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

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

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

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

Trait Implementations

impl Clone for ProgramLocation[src]

impl Debug for ProgramLocation[src]

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

impl Display for ProgramLocation[src]

impl Eq for ProgramLocation[src]

impl<'p> From<RefProgramLocation<'p>> for ProgramLocation[src]

impl Hash for ProgramLocation[src]

impl Ord for ProgramLocation[src]

impl PartialEq<ProgramLocation> for ProgramLocation[src]

impl PartialOrd<ProgramLocation> for ProgramLocation[src]

impl Serialize for ProgramLocation[src]

impl StructuralEq for ProgramLocation[src]

impl StructuralPartialEq for ProgramLocation[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: for<'de> 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.