pub enum ConstCtor {
PtrToGlobalVar(GlobalVar),
SpvInst(Inst),
SpvStringLiteralForExtInst(InternedStr),
}
Variants§
PtrToGlobalVar(GlobalVar)
SpvInst(Inst)
SpvStringLiteralForExtInst(InternedStr)
SPIR-V OpString
, but only when used as an operand for an OpExtInst
,
which can’t have literals itself - for non-string literals OpConstant*
are readily usable, but only OpString
is supported for string literals.
Trait Implementations§
source§impl PartialEq<ConstCtor> for ConstCtor
impl PartialEq<ConstCtor> for ConstCtor
impl Eq for ConstCtor
impl StructuralEq for ConstCtor
impl StructuralPartialEq for ConstCtor
Auto Trait Implementations§
impl RefUnwindSafe for ConstCtor
impl Send for ConstCtor
impl Sync for ConstCtor
impl Unpin for ConstCtor
impl UnwindSafe for ConstCtor
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<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.