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