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