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