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