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