pub struct Reachability<A: AuIds> { /* private fields */ }Expand description
SCC-condensed reachability (§2.4): Tarjan SCCs, one bitset per SCC.
Implementations§
Source§impl<A: AuIds> Reachability<A>
impl<A: AuIds> Reachability<A>
Sourcepub fn is_reachable(&self, source: A::Class, target: A::Class) -> bool
pub fn is_reachable(&self, source: A::Class, target: A::Class) -> bool
Does class target belong to reach(source)?
Sourcepub fn reach_count(&self, source: A::Class) -> u64
pub fn reach_count(&self, source: A::Class) -> u64
How many classes are in reach(source). Note the asymmetry the bitsets
already have: a class belongs to its own reachable set only when it sits
on a cycle, so an acyclic class counts its strict descendants.
Sourcepub fn num_classes(&self) -> u64
pub fn num_classes(&self) -> u64
Number of classes in this reachability table.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Reachability<A>
impl<A> RefUnwindSafe for Reachability<A>
impl<A> Send for Reachability<A>
impl<A> Sync for Reachability<A>
impl<A> Unpin for Reachability<A>
impl<A> UnsafeUnpin for Reachability<A>
impl<A> UnwindSafe for Reachability<A>
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