pub struct States<'tcx> {
pub nonnull: bool,
pub allocator_consistency: bool,
pub init: bool,
pub align: AlignState<'tcx>,
pub valid_string: bool,
pub valid_cstr: bool,
}Expand description
A collection of state properties for a memory location.
Fields§
§nonnull: bool§allocator_consistency: bool§init: bool§align: AlignState<'tcx>§valid_string: bool§valid_cstr: boolImplementations§
Source§impl<'tcx> States<'tcx>
impl<'tcx> States<'tcx>
Sourcepub fn new_unknown() -> Self
pub fn new_unknown() -> Self
Create a new States instance with all fields set to false/unknown.
Sourcepub fn merge_states(&mut self, other: &States<'tcx>)
pub fn merge_states(&mut self, other: &States<'tcx>)
Merge the states of this instance with another.
Trait Implementations§
impl<'tcx> Eq for States<'tcx>
impl<'tcx> StructuralPartialEq for States<'tcx>
Auto Trait Implementations§
impl<'tcx> Freeze for States<'tcx>
impl<'tcx> !RefUnwindSafe for States<'tcx>
impl<'tcx> Send for States<'tcx>
impl<'tcx> Sync for States<'tcx>
impl<'tcx> Unpin for States<'tcx>
impl<'tcx> !UnwindSafe for States<'tcx>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.