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