pub struct ReachabilityAnalysis {
pub reachable: HashSet<usize>,
}Expand description
Reachability analysis: computes which program points are reachable.
Fields§
§reachable: HashSet<usize>Set of reachable labels
Implementations§
Source§impl ReachabilityAnalysis
impl ReachabilityAnalysis
Sourcepub fn mark_reachable(&mut self, label: usize)
pub fn mark_reachable(&mut self, label: usize)
Mark a program point as reachable.
Sourcepub fn is_reachable(&self, label: usize) -> bool
pub fn is_reachable(&self, label: usize) -> bool
Check if a program point is reachable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReachabilityAnalysis
impl RefUnwindSafe for ReachabilityAnalysis
impl Send for ReachabilityAnalysis
impl Sync for ReachabilityAnalysis
impl Unpin for ReachabilityAnalysis
impl UnsafeUnpin for ReachabilityAnalysis
impl UnwindSafe for ReachabilityAnalysis
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