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> Freeze for CairoInstruction<F>where
F: Freeze,
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