pub enum NullnessDomain {
Bottom,
Null,
NonNull,
Top,
}Expand description
The nullness abstract domain: null, non-null, or top.
Variants§
Implementations§
Source§impl NullnessDomain
impl NullnessDomain
Sourcepub fn join(&self, other: &NullnessDomain) -> NullnessDomain
pub fn join(&self, other: &NullnessDomain) -> NullnessDomain
Join two values.
Sourcepub fn may_be_null(&self) -> bool
pub fn may_be_null(&self) -> bool
Return whether this might be null.
Sourcepub fn is_definitely_non_null(&self) -> bool
pub fn is_definitely_non_null(&self) -> bool
Return whether this is definitely non-null.
Trait Implementations§
Source§impl Clone for NullnessDomain
impl Clone for NullnessDomain
Source§fn clone(&self) -> NullnessDomain
fn clone(&self) -> NullnessDomain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NullnessDomain
impl Debug for NullnessDomain
Source§impl PartialEq for NullnessDomain
impl PartialEq for NullnessDomain
impl Copy for NullnessDomain
impl Eq for NullnessDomain
impl StructuralPartialEq for NullnessDomain
Auto Trait Implementations§
impl Freeze for NullnessDomain
impl RefUnwindSafe for NullnessDomain
impl Send for NullnessDomain
impl Sync for NullnessDomain
impl Unpin for NullnessDomain
impl UnsafeUnpin for NullnessDomain
impl UnwindSafe for NullnessDomain
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