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