Struct turshi::runner::CairoInstruction
source · pub struct CairoInstruction<F> { /* private fields */ }
Expand description
This structure stores all the needed information relative to an instruction at a given step of computation
Implementations§
source§impl<F: Field> CairoInstruction<F>
impl<F: Field> CairoInstruction<F>
sourcepub fn new(
word: CairoWord<F>,
ptrs: CairoState<F>,
vars: CairoContext<F>
) -> Self
pub fn new( word: CairoWord<F>, ptrs: CairoState<F>, vars: CairoContext<F> ) -> Self
Creates a CairoInstruction
sourcepub fn instr(&self) -> F
pub fn instr(&self) -> F
Returns the field element corresponding to the CairoInstruction
Trait Implementations§
source§impl<F: Clone> Clone for CairoInstruction<F>
impl<F: Clone> Clone for CairoInstruction<F>
source§fn clone(&self) -> CairoInstruction<F>
fn clone(&self) -> CairoInstruction<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: Field> FlagBits<F> for CairoInstruction<F>
impl<F: Field> FlagBits<F> for CairoInstruction<F>
source§fn f_pc_jnz(&self) -> F
fn f_pc_jnz(&self) -> F
Returns bit-flag for program counter update being conditional jump as
F
source§fn f_ap_add(&self) -> F
fn f_ap_add(&self) -> F
Returns bit-flag for allocation counter update being a manual addition
as
F
source§fn f_ap_one(&self) -> F
fn f_ap_one(&self) -> F
Returns bit-flag for allocation counter update being a self increment as
F
source§fn f_opc_call(&self) -> F
fn f_opc_call(&self) -> F
Returns bit-flag for operation being a call as
F
source§impl<F: Field> Offsets<F> for CairoInstruction<F>
impl<F: Field> Offsets<F> for CairoInstruction<F>
source§impl<F: Field> Pointers<F> for CairoInstruction<F>
impl<F: Field> Pointers<F> for CairoInstruction<F>
impl<F: Copy> Copy for CairoInstruction<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for CairoInstruction<F>where F: RefUnwindSafe,
impl<F> Send for CairoInstruction<F>where F: Send,
impl<F> Sync for CairoInstruction<F>where F: Sync,
impl<F> Unpin for CairoInstruction<F>where F: Unpin,
impl<F> UnwindSafe for CairoInstruction<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