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