Trait 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>