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