pub struct ReachabilityAnalysis { /* private fields */ }Expand description
Abstract reachability analysis: which program points are reachable?
Implementations§
Source§impl ReachabilityAnalysis
impl ReachabilityAnalysis
Sourcepub fn mark_reachable(&mut self, label: &str)
pub fn mark_reachable(&mut self, label: &str)
Mark a point as reachable.
Sourcepub fn mark_unreachable(&mut self, label: &str)
pub fn mark_unreachable(&mut self, label: &str)
Mark a point as unreachable.
Sourcepub fn is_reachable(&self, label: &str) -> bool
pub fn is_reachable(&self, label: &str) -> bool
Return whether a point is definitely reachable.
Sourcepub fn is_unreachable(&self, label: &str) -> bool
pub fn is_unreachable(&self, label: &str) -> bool
Return whether a point is definitely unreachable.
Sourcepub fn reachable_count(&self) -> usize
pub fn reachable_count(&self) -> usize
Return the count of reachable points.
Sourcepub fn unreachable_count(&self) -> usize
pub fn unreachable_count(&self) -> usize
Return the count of unreachable points.
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