Enum spirt::spv::spec::RestOperandsUnit
source · pub enum RestOperandsUnit {
One(OperandKind),
Two([OperandKind; 2]),
}
Expand description
Whether the trailing *
“operand” (i.e. repeated arbitrarily many times),
consists of just one operand, or two per repeat (used by e.g. OpPhi
).
Variants§
One(OperandKind)
Two([OperandKind; 2])
Trait Implementations§
source§impl PartialEq<RestOperandsUnit> for RestOperandsUnit
impl PartialEq<RestOperandsUnit> for RestOperandsUnit
source§fn eq(&self, other: &RestOperandsUnit) -> bool
fn eq(&self, other: &RestOperandsUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RestOperandsUnit
impl StructuralEq for RestOperandsUnit
impl StructuralPartialEq for RestOperandsUnit
Auto Trait Implementations§
impl RefUnwindSafe for RestOperandsUnit
impl Send for RestOperandsUnit
impl Sync for RestOperandsUnit
impl Unpin for RestOperandsUnit
impl UnwindSafe for RestOperandsUnit
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.