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