pub struct EscapeFlowGraph2 {
pub nodes: Vec<u32>,
pub edges: Vec<EscapeFlowEdge>,
pub allocation_sites: HashMap<u32, PointsToTarget>,
}Fields§
§nodes: Vec<u32>§edges: Vec<EscapeFlowEdge>§allocation_sites: HashMap<u32, PointsToTarget>Implementations§
Source§impl EscapeFlowGraph2
impl EscapeFlowGraph2
pub fn new() -> Self
pub fn add_node(&mut self, id: u32)
pub fn add_edge(&mut self, from: u32, to: u32, kind: EscapeEdgeKind)
pub fn register_allocation(&mut self, node: u32, target: PointsToTarget)
pub fn successors(&self, node: u32) -> Vec<u32>
pub fn predecessors(&self, node: u32) -> Vec<u32>
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for EscapeFlowGraph2
impl RefUnwindSafe for EscapeFlowGraph2
impl Send for EscapeFlowGraph2
impl Sync for EscapeFlowGraph2
impl Unpin for EscapeFlowGraph2
impl UnsafeUnpin for EscapeFlowGraph2
impl UnwindSafe for EscapeFlowGraph2
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