pub struct NullPointerAnalysis {
pub nullness: HashMap<String, NullValue>,
}Expand description
Null pointer analysis state: map from variable to null status.
Fields§
§nullness: HashMap<String, NullValue>Variable → nullness
Implementations§
Source§impl NullPointerAnalysis
impl NullPointerAnalysis
Sourcepub fn may_be_null(&self, var: &str) -> bool
pub fn may_be_null(&self, var: &str) -> bool
Check if a variable may be null.
Sourcepub fn must_be_null(&self, var: &str) -> bool
pub fn must_be_null(&self, var: &str) -> bool
Check if a variable must be null.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NullPointerAnalysis
impl RefUnwindSafe for NullPointerAnalysis
impl Send for NullPointerAnalysis
impl Sync for NullPointerAnalysis
impl Unpin for NullPointerAnalysis
impl UnsafeUnpin for NullPointerAnalysis
impl UnwindSafe for NullPointerAnalysis
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