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