pub struct AliasRegion(/* private fields */);Expand description
An opaque reference to an alias region.
Alias regions identify disjoint categories of memory for alias analysis. Two memory operations in different alias regions are known not to alias.
Implementations§
Source§impl AliasRegion
impl AliasRegion
Sourcepub fn as_bits(self) -> u32
pub fn as_bits(self) -> u32
Return the raw bit encoding for this instance.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be passed to from_bits.
Sourcepub fn from_bits(x: u32) -> Self
pub fn from_bits(x: u32) -> Self
Create a new instance from the raw bit encoding.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be given bits from as_bits.
Trait Implementations§
Source§impl Clone for AliasRegion
impl Clone for AliasRegion
Source§fn clone(&self) -> AliasRegion
fn clone(&self) -> AliasRegion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AliasRegion
Source§impl Debug for AliasRegion
impl Debug for AliasRegion
Source§impl<'de> Deserialize<'de> for AliasRegion
impl<'de> Deserialize<'de> for AliasRegion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for AliasRegion
impl Display for AliasRegion
Source§impl EntityRef for AliasRegion
impl EntityRef for AliasRegion
impl Eq for AliasRegion
Source§impl From<AliasRegion> for AnyEntity
impl From<AliasRegion> for AnyEntity
Source§fn from(r: AliasRegion) -> Self
fn from(r: AliasRegion) -> Self
Source§impl Hash for AliasRegion
impl Hash for AliasRegion
Source§impl Index<AliasRegion> for AliasRegionSet
impl Index<AliasRegion> for AliasRegionSet
Source§type Output = AliasRegionData
type Output = AliasRegionData
Source§fn index(&self, ar: AliasRegion) -> &AliasRegionData
fn index(&self, ar: AliasRegion) -> &AliasRegionData
container[index]) operation. Read moreSource§impl Ord for AliasRegion
impl Ord for AliasRegion
Source§fn cmp(&self, other: &AliasRegion) -> Ordering
fn cmp(&self, other: &AliasRegion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AliasRegion
impl PartialEq for AliasRegion
Source§fn eq(&self, other: &AliasRegion) -> bool
fn eq(&self, other: &AliasRegion) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AliasRegion
impl PartialOrd for AliasRegion
Source§impl ReservedValue for AliasRegion
impl ReservedValue for AliasRegion
Source§fn reserved_value() -> AliasRegion
fn reserved_value() -> AliasRegion
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Source§impl Serialize for AliasRegion
impl Serialize for AliasRegion
impl StructuralPartialEq for AliasRegion
Auto Trait Implementations§
impl Freeze for AliasRegion
impl RefUnwindSafe for AliasRegion
impl Send for AliasRegion
impl Sync for AliasRegion
impl Unpin for AliasRegion
impl UnsafeUnpin for AliasRegion
impl UnwindSafe for AliasRegion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
§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
§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
key and return true if they are equal.