Enum falcon::il::FunctionLocation
[−]
[src]
pub enum FunctionLocation { Instruction(u64, u64), Edge(u64, u64), EmptyBlock(u64), }
A location indepdent of any specific instance of Function
.
Variants
Instruction(u64, u64)
Edge(u64, u64)
EmptyBlock(u64)
Methods
impl FunctionLocation
[src]
fn apply<'f>(&self, function: &'f Function) -> Option<RefFunctionLocation<'f>>
[src]
"Apply" this FunctionLocation
to a Function
, returning a
RefFunctionLocation
.
fn block_index(&self) -> Option<u64>
[src]
If this FunctionLocation
has a valid Block
target, return the index
of that Instruction
.
fn instruction_index(&self) -> Option<u64>
[src]
If this FunctionLocation
has a valid Instruction
target, return the
index of that Instruction
.
Trait Implementations
impl Clone for FunctionLocation
[src]
fn clone(&self) -> FunctionLocation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FunctionLocation
[src]
impl Eq for FunctionLocation
[src]
impl Hash for FunctionLocation
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for FunctionLocation
[src]
fn cmp(&self, __arg_0: &FunctionLocation) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialEq for FunctionLocation
[src]
fn eq(&self, __arg_0: &FunctionLocation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FunctionLocation) -> bool
[src]
This method tests for !=
.
impl PartialOrd for FunctionLocation
[src]
fn partial_cmp(&self, __arg_0: &FunctionLocation) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &FunctionLocation) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &FunctionLocation) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &FunctionLocation) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &FunctionLocation) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'f> From<RefFunctionLocation<'f>> for FunctionLocation
[src]
fn from(function_location: RefFunctionLocation) -> FunctionLocation
[src]
Performs the conversion.