Struct spirt::spv::spec::PackedOperandNameAndKind
source · pub struct PackedOperandNameAndKind(/* private fields */);
Implementations§
source§impl PackedOperandNameAndKind
impl PackedOperandNameAndKind
sourcepub fn kind(self) -> OperandKind
pub fn kind(self) -> OperandKind
Unpack this PackedOperandNameAndKind
into just its OperandKind
.
sourcepub fn name_and_kind(self) -> (&'static str, OperandKind)
pub fn name_and_kind(self) -> (&'static str, OperandKind)
Unpack this PackedOperandNameAndKind
into a name and OperandKind
.
Trait Implementations§
source§impl Clone for PackedOperandNameAndKind
impl Clone for PackedOperandNameAndKind
source§fn clone(&self) -> PackedOperandNameAndKind
fn clone(&self) -> PackedOperandNameAndKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PackedOperandNameAndKind
impl Debug for PackedOperandNameAndKind
source§impl Hash for PackedOperandNameAndKind
impl Hash for PackedOperandNameAndKind
source§impl Ord for PackedOperandNameAndKind
impl Ord for PackedOperandNameAndKind
source§fn cmp(&self, other: &PackedOperandNameAndKind) -> Ordering
fn cmp(&self, other: &PackedOperandNameAndKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PackedOperandNameAndKind> for PackedOperandNameAndKind
impl PartialEq<PackedOperandNameAndKind> for PackedOperandNameAndKind
source§fn eq(&self, other: &PackedOperandNameAndKind) -> bool
fn eq(&self, other: &PackedOperandNameAndKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PackedOperandNameAndKind> for PackedOperandNameAndKind
impl PartialOrd<PackedOperandNameAndKind> for PackedOperandNameAndKind
source§fn partial_cmp(&self, other: &PackedOperandNameAndKind) -> Option<Ordering>
fn partial_cmp(&self, other: &PackedOperandNameAndKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PackedOperandNameAndKind
impl Eq for PackedOperandNameAndKind
impl StructuralEq for PackedOperandNameAndKind
impl StructuralPartialEq for PackedOperandNameAndKind
Auto Trait Implementations§
impl RefUnwindSafe for PackedOperandNameAndKind
impl Send for PackedOperandNameAndKind
impl Sync for PackedOperandNameAndKind
impl Unpin for PackedOperandNameAndKind
impl UnwindSafe for PackedOperandNameAndKind
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.