pub enum QPtrUsage {
Handles(Handle<QPtrMemUsage>),
Memory(QPtrMemUsage),
}
Variants§
Handles(Handle<QPtrMemUsage>)
Used to access one or more handles (i.e. optionally indexed by
QPtrOp::HandleArrayIndex
), which can be:
Handle::Opaque(handle_type)
: all uses involveQPtrOp::Load
orQPtrAttr::ToSpvPtrInput
, with the common typehandle_type
Handle::Buffer(data_usage)
: carries with itdata_usage
, i.e. the usage of the memory that can be accessed throughQPtrOp::BufferData
Memory(QPtrMemUsage)
Trait Implementations§
source§impl From<QPtrUsage> for DiagMsgPart
impl From<QPtrUsage> for DiagMsgPart
source§fn from(original: QPtrUsage) -> DiagMsgPart
fn from(original: QPtrUsage) -> DiagMsgPart
Converts to this type from the input type.
source§impl InnerVisit for QPtrUsage
impl InnerVisit for QPtrUsage
fn inner_visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)
source§impl PartialEq<QPtrUsage> for QPtrUsage
impl PartialEq<QPtrUsage> for QPtrUsage
impl Eq for QPtrUsage
impl StructuralEq for QPtrUsage
impl StructuralPartialEq for QPtrUsage
Auto Trait Implementations§
impl RefUnwindSafe for QPtrUsage
impl !Send for QPtrUsage
impl !Sync for QPtrUsage
impl Unpin for QPtrUsage
impl UnwindSafe for QPtrUsage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T, V> DynInnerVisit<'a, V> for Twhere
T: InnerVisit,
V: Visitor<'a>,
impl<'a, T, V> DynInnerVisit<'a, V> for Twhere T: InnerVisit, V: Visitor<'a>,
fn dyn_inner_visit_with(&'a self, visitor: &mut V)
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.