Trait turshi::runner::Pointers

source ·
pub trait Pointers<F> {
    // Required methods
    fn pc(&self) -> F;
    fn ap(&self) -> F;
    fn fp(&self) -> F;
}
Expand description

This trait contains functions to obtain the Cairo pointers (program counter, allocation pointer and frame pointer)

Required Methods§

source

fn pc(&self) -> F

Returns the program counter

source

fn ap(&self) -> F

Returns the allocation pointer

source

fn fp(&self) -> F

Returns the frame pointer

Implementors§

source§

impl<F: Field> Pointers<F> for CairoInstruction<F>

source§

impl<F: Field> Pointers<F> for CairoState<F>