#[repr(u8)]pub enum CpuInstCode {
ConstInt = 2,
ConstFloat = 3,
Dup = 4,
Pop = 5,
Swap = 6,
Return = 100,
Halt = 255,
}Expand description
Cpu instruction codes (FLAIR-aligned).
Variants§
Trait Implementations§
Source§impl Clone for CpuInstCode
impl Clone for CpuInstCode
Source§fn clone(&self) -> CpuInstCode
fn clone(&self) -> CpuInstCode
Returns a duplicate 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 CpuInstCode
impl Debug for CpuInstCode
Source§impl PartialEq for CpuInstCode
impl PartialEq for CpuInstCode
impl Copy for CpuInstCode
impl Eq for CpuInstCode
impl StructuralPartialEq for CpuInstCode
Auto Trait Implementations§
impl Freeze for CpuInstCode
impl RefUnwindSafe for CpuInstCode
impl Send for CpuInstCode
impl Sync for CpuInstCode
impl Unpin for CpuInstCode
impl UnwindSafe for CpuInstCode
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