pub struct Instruction<F> {
pub opcode: VmOpcode,
pub a: F,
pub b: F,
pub c: F,
pub d: F,
pub e: F,
pub f: F,
pub g: F,
}
Fields§
§opcode: VmOpcode
§a: F
§b: F
§c: F
§d: F
§e: F
§f: F
§g: F
Implementations§
Source§impl<F> Instruction<F>
impl<F> Instruction<F>
Source§impl<F: Field> Instruction<F>
impl<F: Field> Instruction<F>
pub fn from_isize( opcode: VmOpcode, a: isize, b: isize, c: isize, d: isize, e: isize, ) -> Self
pub fn from_usize<const N: usize>( opcode: VmOpcode, operands: [usize; N], ) -> Self
pub fn large_from_isize( opcode: VmOpcode, a: isize, b: isize, c: isize, d: isize, e: isize, f: isize, g: isize, ) -> Self
pub fn phantom( discriminant: PhantomDiscriminant, a: F, b: F, c_upper: u16, ) -> Self
pub fn debug(discriminant: PhantomDiscriminant) -> Self
Trait Implementations§
Source§impl<F: Clone> Clone for Instruction<F>
impl<F: Clone> Clone for Instruction<F>
Source§fn clone(&self) -> Instruction<F>
fn clone(&self) -> Instruction<F>
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<F: Debug> Debug for Instruction<F>
impl<F: Debug> Debug for Instruction<F>
Source§impl<T: Default> Default for Instruction<T>
impl<T: Default> Default for Instruction<T>
Source§impl<'de, F> Deserialize<'de> for Instruction<F>where
F: Deserialize<'de>,
impl<'de, F> Deserialize<'de> for Instruction<F>where
F: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<F: PartialEq> PartialEq for Instruction<F>
impl<F: PartialEq> PartialEq for Instruction<F>
Source§impl<F> Serialize for Instruction<F>where
F: Serialize,
impl<F> Serialize for Instruction<F>where
F: Serialize,
impl<F: Eq> Eq for Instruction<F>
impl<F> StructuralPartialEq for Instruction<F>
Auto Trait Implementations§
impl<F> Freeze for Instruction<F>where
F: Freeze,
impl<F> RefUnwindSafe for Instruction<F>where
F: RefUnwindSafe,
impl<F> Send for Instruction<F>where
F: Send,
impl<F> Sync for Instruction<F>where
F: Sync,
impl<F> Unpin for Instruction<F>where
F: Unpin,
impl<F> UnwindSafe for Instruction<F>where
F: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more