Struct spirt::spv::spec::OperandKind
source · pub struct OperandKind(/* private fields */);
Implementations§
source§impl OperandKind
impl OperandKind
sourcepub fn name_and_def(self) -> (&'static str, &'static OperandKindDef)
pub fn name_and_def(self) -> (&'static str, &'static OperandKindDef)
Lookup the name & definition for this operand kind in the lazily-loaded Spec
.
sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Lookup the name for this operand kind in the lazily-loaded Spec
.
sourcepub fn def(self) -> &'static OperandKindDef
pub fn def(self) -> &'static OperandKindDef
Lookup the definition for this operand kind in the lazily-loaded Spec
.
Trait Implementations§
source§impl Clone for OperandKind
impl Clone for OperandKind
source§fn clone(&self) -> OperandKind
fn clone(&self) -> OperandKind
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 OperandKind
impl Debug for OperandKind
source§impl Hash for OperandKind
impl Hash for OperandKind
source§impl Ord for OperandKind
impl Ord for OperandKind
source§fn cmp(&self, other: &OperandKind) -> Ordering
fn cmp(&self, other: &OperandKind) -> 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<OperandKind> for OperandKind
impl PartialEq<OperandKind> for OperandKind
source§fn eq(&self, other: &OperandKind) -> bool
fn eq(&self, other: &OperandKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OperandKind> for OperandKind
impl PartialOrd<OperandKind> for OperandKind
source§fn partial_cmp(&self, other: &OperandKind) -> Option<Ordering>
fn partial_cmp(&self, other: &OperandKind) -> 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 OperandKind
impl Eq for OperandKind
impl StructuralEq for OperandKind
impl StructuralPartialEq for OperandKind
Auto Trait Implementations§
impl RefUnwindSafe for OperandKind
impl Send for OperandKind
impl Sync for OperandKind
impl Unpin for OperandKind
impl UnwindSafe for OperandKind
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.