pub struct PointerOutcomeFlags(/* private fields */);Expand description
What the core pointer-resolution stage did with a batch’s raw samples
(NV_POINTER_OUTCOME_*, bits 8.. of the dispatch_events_ex disposition word).
Implementations§
Source§impl PointerOutcomeFlags
impl PointerOutcomeFlags
Sourcepub const NONE: PointerOutcomeFlags
pub const NONE: PointerOutcomeFlags
Empty bitmask with no flags set.
Sourcepub const EMPTY: PointerOutcomeFlags
pub const EMPTY: PointerOutcomeFlags
Alias for Self::NONE.
pub const TARGETED: PointerOutcomeFlags
pub const CAPTURED: PointerOutcomeFlags
pub const CLAIMED: PointerOutcomeFlags
pub const MODAL_BARRIER: PointerOutcomeFlags
pub const REFUSED: PointerOutcomeFlags
Sourcepub const ALL: PointerOutcomeFlags
pub const ALL: PointerOutcomeFlags
Bitwise union of all declared flags.
Sourcepub const fn empty() -> PointerOutcomeFlags
pub const fn empty() -> PointerOutcomeFlags
Returns an empty bitmask (const helper).
Sourcepub const fn from_bits_truncate(bits: u32) -> PointerOutcomeFlags
pub const fn from_bits_truncate(bits: u32) -> PointerOutcomeFlags
Constructs from raw bits, masking off any undeclared bits.
Sourcepub const fn from_bits_retain(bits: u32) -> PointerOutcomeFlags
pub const fn from_bits_retain(bits: u32) -> PointerOutcomeFlags
Constructs from raw bits without masking.
Sourcepub const fn contains(self, other: PointerOutcomeFlags) -> bool
pub const fn contains(self, other: PointerOutcomeFlags) -> bool
Returns true when every flag in other is set in self.
Sourcepub const fn intersects(self, other: PointerOutcomeFlags) -> bool
pub const fn intersects(self, other: PointerOutcomeFlags) -> bool
Returns true when at least one flag in other is set in self.
Sourcepub const fn union(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
pub const fn union(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
Bitwise OR (self | other), usable in const contexts.
Sourcepub const fn intersection(
self,
other: PointerOutcomeFlags,
) -> PointerOutcomeFlags
pub const fn intersection( self, other: PointerOutcomeFlags, ) -> PointerOutcomeFlags
Bitwise AND (self & other), usable in const contexts.
Sourcepub const fn difference(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
pub const fn difference(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
Bitwise difference (self & !other), usable in const contexts.
Sourcepub const fn with(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
pub const fn with(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
Returns self with other flags added (const alias for Self::union).
Sourcepub const fn without(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
pub const fn without(self, other: PointerOutcomeFlags) -> PointerOutcomeFlags
Returns self with other flags cleared (const alias for Self::difference).
Sourcepub fn insert(&mut self, other: PointerOutcomeFlags)
pub fn insert(&mut self, other: PointerOutcomeFlags)
Sets all flags in other.
Sourcepub fn remove(&mut self, other: PointerOutcomeFlags)
pub fn remove(&mut self, other: PointerOutcomeFlags)
Clears all flags in other.
Sourcepub fn set(&mut self, other: PointerOutcomeFlags, on: bool)
pub fn set(&mut self, other: PointerOutcomeFlags, on: bool)
Sets or clears other depending on on.
Trait Implementations§
Source§impl BitAnd for PointerOutcomeFlags
impl BitAnd for PointerOutcomeFlags
Source§type Output = PointerOutcomeFlags
type Output = PointerOutcomeFlags
& operator.Source§fn bitand(self, rhs: PointerOutcomeFlags) -> PointerOutcomeFlags
fn bitand(self, rhs: PointerOutcomeFlags) -> PointerOutcomeFlags
& operation. Read moreSource§impl BitAndAssign for PointerOutcomeFlags
impl BitAndAssign for PointerOutcomeFlags
Source§fn bitand_assign(&mut self, rhs: PointerOutcomeFlags)
fn bitand_assign(&mut self, rhs: PointerOutcomeFlags)
&= operation. Read moreSource§impl BitOr for PointerOutcomeFlags
impl BitOr for PointerOutcomeFlags
Source§type Output = PointerOutcomeFlags
type Output = PointerOutcomeFlags
| operator.Source§fn bitor(self, rhs: PointerOutcomeFlags) -> PointerOutcomeFlags
fn bitor(self, rhs: PointerOutcomeFlags) -> PointerOutcomeFlags
| operation. Read moreSource§impl BitOrAssign for PointerOutcomeFlags
impl BitOrAssign for PointerOutcomeFlags
Source§fn bitor_assign(&mut self, rhs: PointerOutcomeFlags)
fn bitor_assign(&mut self, rhs: PointerOutcomeFlags)
|= operation. Read moreSource§impl BitXor for PointerOutcomeFlags
impl BitXor for PointerOutcomeFlags
Source§type Output = PointerOutcomeFlags
type Output = PointerOutcomeFlags
^ operator.Source§fn bitxor(self, rhs: PointerOutcomeFlags) -> PointerOutcomeFlags
fn bitxor(self, rhs: PointerOutcomeFlags) -> PointerOutcomeFlags
^ operation. Read moreSource§impl BitXorAssign for PointerOutcomeFlags
impl BitXorAssign for PointerOutcomeFlags
Source§fn bitxor_assign(&mut self, rhs: PointerOutcomeFlags)
fn bitxor_assign(&mut self, rhs: PointerOutcomeFlags)
^= operation. Read moreSource§impl Clone for PointerOutcomeFlags
impl Clone for PointerOutcomeFlags
Source§fn clone(&self) -> PointerOutcomeFlags
fn clone(&self) -> PointerOutcomeFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PointerOutcomeFlags
Source§impl Debug for PointerOutcomeFlags
impl Debug for PointerOutcomeFlags
Source§impl Default for PointerOutcomeFlags
impl Default for PointerOutcomeFlags
Source§fn default() -> PointerOutcomeFlags
fn default() -> PointerOutcomeFlags
impl Eq for PointerOutcomeFlags
Source§impl Hash for PointerOutcomeFlags
impl Hash for PointerOutcomeFlags
Source§impl Not for PointerOutcomeFlags
impl Not for PointerOutcomeFlags
Source§type Output = PointerOutcomeFlags
type Output = PointerOutcomeFlags
! operator.Source§fn not(self) -> PointerOutcomeFlags
fn not(self) -> PointerOutcomeFlags
! operation using logical or bitwise negation. Read more