pub struct FunctionGraph {
pub function: FunctionId,
pub entry: u64,
pub blocks: Vec<Block>,
pub edges: Vec<Edge>,
/* private fields */
}Expand description
A function’s control-flow graph.
Fields§
§function: FunctionIdThe function.
entry: u64Its entry.
blocks: Vec<Block>Its blocks: the entry’s first, the rest by address.
edges: Vec<Edge>Its edges, by source block, in the order recovery states them.
Implementations§
Source§impl FunctionGraph
impl FunctionGraph
Sourcepub fn build(
db: &Database<'_>,
listing: &Listing,
function: FunctionId,
) -> Option<Self>
pub fn build( db: &Database<'_>, listing: &Listing, function: FunctionId, ) -> Option<Self>
The graph of function in db, with lines from listing (built
from the same database). None if there is no such function.
Sourcepub fn layout_edges(&self) -> Vec<Edge>
pub fn layout_edges(&self) -> Vec<Edge>
The edges to lay out, in the order of Self::edges.
Trait Implementations§
Source§impl Clone for FunctionGraph
impl Clone for FunctionGraph
Source§impl Debug for FunctionGraph
impl Debug for FunctionGraph
impl Eq for FunctionGraph
Source§impl PartialEq for FunctionGraph
impl PartialEq for FunctionGraph
impl StructuralPartialEq for FunctionGraph
Auto Trait Implementations§
impl Forget for FunctionGraph
impl Freeze for FunctionGraph
impl Move for FunctionGraph
impl RefUnwindSafe for FunctionGraph
impl Send for FunctionGraph
impl Sync for FunctionGraph
impl Unpin for FunctionGraph
impl UnsafeUnpin for FunctionGraph
impl UnwindSafe for FunctionGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more