Struct falcon::il::RefProgramLocation[][src]

pub struct RefProgramLocation<'p> { /* fields omitted */ }

A location applied to a Program.

Methods

impl<'p> RefProgramLocation<'p>
[src]

Create a new RefProgramLocation in the given Program.

Create a new RefProgramLocation in the given Program by finding the first Instruction with the given address.

Create a new RefProgramLocation in the given Program by finding the first Instruction in the given function.

Get the function for this RefProgramLocation.

Get the RefFunctionLocation for this RefProgramLocation

If this RefProgramLocation references a Block, get that Block.

If this RefProgramLocation references an Instruction, get that Instruction.

If this RefProgramLocation references an Edge, get that Edge

If this RefProgramLocation is referencing an Instruction which has an address set, return that address.

Apply this RefProgramLocation to another Program.

This works by locating the location in the other Program based on Function, Block, and Instruction indices.

Advance the RefProgramLocation forward.

This does not follow targets of Operation::Brc.

Advance the RefProgramLocation backward.

This does not follow targets of Operation::Brc.

Trait Implementations

impl<'p> Clone for RefProgramLocation<'p>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'p> Debug for RefProgramLocation<'p>
[src]

Formats the value using the given formatter. Read more

impl<'p> Eq for RefProgramLocation<'p>
[src]

impl<'p> Hash for RefProgramLocation<'p>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'p> PartialEq for RefProgramLocation<'p>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Formats the value using the given formatter. Read more

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

Performs the conversion.

Auto Trait Implementations

impl<'p> Send for RefProgramLocation<'p>

impl<'p> Sync for RefProgramLocation<'p>