Enum o1vm::interpreters::riscv32i::interpreter::Instruction
source · pub enum Instruction {
RType(RInstruction),
IType(IInstruction),
SType(SInstruction),
SBType(SBInstruction),
UType(UInstruction),
UJType(UJInstruction),
SyscallType(SyscallInstruction),
}
Variants§
RType(RInstruction)
IType(IInstruction)
SType(SInstruction)
SBType(SBInstruction)
UType(UInstruction)
UJType(UJInstruction)
SyscallType(SyscallInstruction)
Trait Implementations§
source§impl Clone for Instruction
impl Clone for Instruction
source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl Debug for Instruction
source§impl Display for Instruction
impl Display for Instruction
source§impl From<Instruction> for usize
impl From<Instruction> for usize
source§fn from(instr: Instruction) -> usize
fn from(instr: Instruction) -> usize
Converts to this type from the input type.
source§impl Hash for Instruction
impl Hash for Instruction
source§impl IntoEnumIterator for Instruction
impl IntoEnumIterator for Instruction
type Iterator = InstructionIter
fn iter() -> InstructionIter ⓘ
source§impl IntoIterator for Instruction
impl IntoIterator for Instruction
source§impl Ord for Instruction
impl Ord for Instruction
source§fn cmp(&self, other: &Instruction) -> Ordering
fn cmp(&self, other: &Instruction) -> 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<Instruction> for Instruction
impl PartialEq<Instruction> for Instruction
source§fn eq(&self, other: &Instruction) -> bool
fn eq(&self, other: &Instruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Instruction> for Instruction
impl PartialOrd<Instruction> for Instruction
source§fn partial_cmp(&self, other: &Instruction) -> Option<Ordering>
fn partial_cmp(&self, other: &Instruction) -> 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 Instruction
impl Eq for Instruction
impl StructuralEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more