pub struct MemoryModificationImpact { /* private fields */ }Implementations§
Source§impl MemoryModificationImpact
impl MemoryModificationImpact
Sourcepub fn empty() -> MemoryModificationImpact
pub fn empty() -> MemoryModificationImpact
Returns an empty set of flags.
Sourcepub fn all() -> MemoryModificationImpact
pub fn all() -> MemoryModificationImpact
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<MemoryModificationImpact>
pub fn from_bits(bits: u32) -> Option<MemoryModificationImpact>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> MemoryModificationImpact
pub fn from_bits_truncate(bits: u32) -> MemoryModificationImpact
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: MemoryModificationImpact) -> bool
pub fn intersects(&self, other: MemoryModificationImpact) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: MemoryModificationImpact) -> bool
pub fn contains(&self, other: MemoryModificationImpact) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: MemoryModificationImpact)
pub fn insert(&mut self, other: MemoryModificationImpact)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: MemoryModificationImpact)
pub fn remove(&mut self, other: MemoryModificationImpact)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: MemoryModificationImpact)
pub fn toggle(&mut self, other: MemoryModificationImpact)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: MemoryModificationImpact, value: bool)
pub fn set(&mut self, other: MemoryModificationImpact, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl BitAnd for MemoryModificationImpact
impl BitAnd for MemoryModificationImpact
Source§fn bitand(self, other: MemoryModificationImpact) -> MemoryModificationImpact
fn bitand(self, other: MemoryModificationImpact) -> MemoryModificationImpact
Returns the intersection between the two sets of flags.
Source§type Output = MemoryModificationImpact
type Output = MemoryModificationImpact
& operator.Source§impl BitAndAssign for MemoryModificationImpact
impl BitAndAssign for MemoryModificationImpact
Source§fn bitand_assign(&mut self, other: MemoryModificationImpact)
fn bitand_assign(&mut self, other: MemoryModificationImpact)
Disables all flags disabled in the set.
Source§impl BitOr for MemoryModificationImpact
impl BitOr for MemoryModificationImpact
Source§fn bitor(self, other: MemoryModificationImpact) -> MemoryModificationImpact
fn bitor(self, other: MemoryModificationImpact) -> MemoryModificationImpact
Returns the union of the two sets of flags.
Source§type Output = MemoryModificationImpact
type Output = MemoryModificationImpact
| operator.Source§impl BitOrAssign for MemoryModificationImpact
impl BitOrAssign for MemoryModificationImpact
Source§fn bitor_assign(&mut self, other: MemoryModificationImpact)
fn bitor_assign(&mut self, other: MemoryModificationImpact)
Adds the set of flags.
Source§impl BitXor for MemoryModificationImpact
impl BitXor for MemoryModificationImpact
Source§fn bitxor(self, other: MemoryModificationImpact) -> MemoryModificationImpact
fn bitxor(self, other: MemoryModificationImpact) -> MemoryModificationImpact
Returns the left flags, but with all the right flags toggled.
Source§type Output = MemoryModificationImpact
type Output = MemoryModificationImpact
^ operator.Source§impl BitXorAssign for MemoryModificationImpact
impl BitXorAssign for MemoryModificationImpact
Source§fn bitxor_assign(&mut self, other: MemoryModificationImpact)
fn bitxor_assign(&mut self, other: MemoryModificationImpact)
Toggles the set of flags.
Source§impl Clone for MemoryModificationImpact
impl Clone for MemoryModificationImpact
Source§fn clone(&self) -> MemoryModificationImpact
fn clone(&self) -> MemoryModificationImpact
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 MemoryModificationImpact
Source§impl Debug for MemoryModificationImpact
impl Debug for MemoryModificationImpact
impl Eq for MemoryModificationImpact
Source§impl Extend<MemoryModificationImpact> for MemoryModificationImpact
impl Extend<MemoryModificationImpact> for MemoryModificationImpact
Source§fn extend<T: IntoIterator<Item = MemoryModificationImpact>>(
&mut self,
iterator: T,
)
fn extend<T: IntoIterator<Item = MemoryModificationImpact>>( &mut self, iterator: T, )
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<MemoryModificationImpact> for MemoryModificationImpact
impl FromIterator<MemoryModificationImpact> for MemoryModificationImpact
Source§fn from_iter<T: IntoIterator<Item = MemoryModificationImpact>>(
iterator: T,
) -> MemoryModificationImpact
fn from_iter<T: IntoIterator<Item = MemoryModificationImpact>>( iterator: T, ) -> MemoryModificationImpact
Source§impl Hash for MemoryModificationImpact
impl Hash for MemoryModificationImpact
Source§impl Not for MemoryModificationImpact
impl Not for MemoryModificationImpact
Source§fn not(self) -> MemoryModificationImpact
fn not(self) -> MemoryModificationImpact
Returns the complement of this set of flags.
Source§type Output = MemoryModificationImpact
type Output = MemoryModificationImpact
! operator.Source§impl Ord for MemoryModificationImpact
impl Ord for MemoryModificationImpact
Source§fn cmp(&self, other: &MemoryModificationImpact) -> Ordering
fn cmp(&self, other: &MemoryModificationImpact) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MemoryModificationImpact
impl PartialEq for MemoryModificationImpact
Source§impl PartialOrd for MemoryModificationImpact
impl PartialOrd for MemoryModificationImpact
impl StructuralPartialEq for MemoryModificationImpact
Source§impl Sub for MemoryModificationImpact
impl Sub for MemoryModificationImpact
Source§fn sub(self, other: MemoryModificationImpact) -> MemoryModificationImpact
fn sub(self, other: MemoryModificationImpact) -> MemoryModificationImpact
Returns the set difference of the two sets of flags.
Source§type Output = MemoryModificationImpact
type Output = MemoryModificationImpact
- operator.Source§impl SubAssign for MemoryModificationImpact
impl SubAssign for MemoryModificationImpact
Source§fn sub_assign(&mut self, other: MemoryModificationImpact)
fn sub_assign(&mut self, other: MemoryModificationImpact)
Disables all flags enabled in the set.