pub struct EnvGraph { /* private fields */ }Expand description
A directed graph of closure environment dependencies. Edges mean “closure A captures closure B”.
Implementations§
Source§impl EnvGraph
impl EnvGraph
Sourcepub fn transitive_captures(&self, id: u32) -> Vec<u32>
pub fn transitive_captures(&self, id: u32) -> Vec<u32>
Compute the transitive closure of captures (all transitively captured closures).
Sourcepub fn node_count(&self) -> u32
pub fn node_count(&self) -> u32
Number of nodes.
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Number of edges.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvGraph
impl RefUnwindSafe for EnvGraph
impl Send for EnvGraph
impl Sync for EnvGraph
impl Unpin for EnvGraph
impl UnsafeUnpin for EnvGraph
impl UnwindSafe for EnvGraph
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