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