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