Struct falcon::il::Program
[−]
[src]
pub struct Program { /* fields omitted */ }
A representation of a program by il::Function
Methods
impl Program
[src]
pub fn new() -> Program
[src]
Creates a new, empty Program
.
pub fn function_by_address(&self, address: u64) -> Option<&Function>
[src]
Search for a Function
by its optional address, assuming one was assigned.
Returns the Function
if found, or None
if not found.
pub fn functions(&self) -> Vec<&Function>
[src]
Get all Function
for this Program
.
pub fn functions_map(&self) -> &BTreeMap<u64, Function>
[src]
Get the underlying BTreeMap holding all Function
for this Program
.
pub fn function(&self, index: u64) -> Option<&Function>
[src]
Get a Function
by its index.
A Function
index is assigned by Program
and is not the address where the Function
was discovered.
pub fn function_rc(&self, index: u64) -> Option<Function>
[src]
Returns a Rc<Function>
by it's index.
pub fn add_function(&mut self, function: Function)
[src]
Add a Function
to the Program
.
This will also assign an index to the Function
.
Trait Implementations
impl Clone for Program
[src]
fn clone(&self) -> Program
[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 Program
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Hash for Program
[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