Trait turshi::word::Offsets

source ·
pub trait Offsets<F> {
    // Required methods
    fn off_dst(&self) -> F;
    fn off_op0(&self) -> F;
    fn off_op1(&self) -> F;
}
Expand description

This trait contains methods to obtain the offset decomposition of a CairoWord

Required Methods§

source

fn off_dst(&self) -> F

Returns the destination offset in biased representation

source

fn off_op0(&self) -> F

Returns the first operand offset in biased representation

source

fn off_op1(&self) -> F

Returns the second operand offset in biased representation

Implementors§

source§

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

source§

impl<F: Field> Offsets<F> for CairoWord<F>