pub enum AliasResult {
MustAlias,
MayAlias,
NoAlias,
}Expand description
The result of querying whether two values may alias.
Variants§
MustAlias
The two values definitely refer to the same memory location.
MayAlias
The two values may or may not refer to the same location.
NoAlias
The two values definitely do not refer to the same location.
Implementations§
Source§impl AliasResult
impl AliasResult
Sourcepub fn must_alias(self) -> bool
pub fn must_alias(self) -> bool
Returns true if aliasing is certain.
Sourcepub fn merge(self, other: AliasResult) -> AliasResult
pub fn merge(self, other: AliasResult) -> AliasResult
Merge two alias results conservatively.
Trait Implementations§
Source§impl Clone for AliasResult
impl Clone for AliasResult
Source§fn clone(&self) -> AliasResult
fn clone(&self) -> AliasResult
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 AliasResult
impl Debug for AliasResult
Source§impl Hash for AliasResult
impl Hash for AliasResult
Source§impl PartialEq for AliasResult
impl PartialEq for AliasResult
impl Copy for AliasResult
impl Eq for AliasResult
impl StructuralPartialEq for AliasResult
Auto Trait Implementations§
impl Freeze for AliasResult
impl RefUnwindSafe for AliasResult
impl Send for AliasResult
impl Sync for AliasResult
impl Unpin for AliasResult
impl UnsafeUnpin for AliasResult
impl UnwindSafe for AliasResult
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