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