[−][src]Struct falcon::il::Program
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<usize, &Function>
[src]
Get the underlying BTreeMap holding all Function
for this Program
.
pub fn function(&self, index: usize) -> 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 add_function(&mut self, function: Function)
[src]
Add a Function
to the Program
.
This will also assign an index to the Function
.
pub fn function_by_name(&self, name: &str) -> Option<&Function>
[src]
Get a Function
by its name.
Trait Implementations
impl Clone for Program
[src]
impl Debug for Program
[src]
impl<'de> Deserialize<'de> for Program
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Program
[src]
impl Serialize for Program
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Program
impl !Send for Program
impl !Sync for Program
impl Unpin for Program
impl !UnwindSafe for Program
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,