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