pub struct MemFlags(/* private fields */);Expand description
An opaque reference to memory operation flags stored in a
MemFlagsSet.
MemFlags is a u16 entity index that refers to a MemFlagsData entry in
the MemFlagsSet stored in the
DataFlowGraph.
Implementations§
Source§impl MemFlags
impl MemFlags
Sourcepub fn with_number(n: u32) -> Option<Self>
pub fn with_number(n: u32) -> Option<Self>
Create a new MemFlags from a u32 index.
Returns None if the index doesn’t fit in a u16.
Trait Implementations§
impl Copy for MemFlags
impl Eq for MemFlags
Source§impl Index<MemFlags> for MemFlagsSet
impl Index<MemFlags> for MemFlagsSet
Source§type Output = MemFlagsData
type Output = MemFlagsData
The returned type after indexing.
Source§impl Ord for MemFlags
impl Ord for MemFlags
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MemFlags
impl PartialOrd for MemFlags
Source§impl ReservedValue for MemFlags
impl ReservedValue for MemFlags
Source§fn reserved_value() -> Self
fn reserved_value() -> Self
Create an instance of the reserved value.
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Checks whether value is the reserved one.
impl StructuralPartialEq for MemFlags
Auto Trait Implementations§
impl Freeze for MemFlags
impl RefUnwindSafe for MemFlags
impl Send for MemFlags
impl Sync for MemFlags
impl Unpin for MemFlags
impl UnsafeUnpin for MemFlags
impl UnwindSafe for MemFlags
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.