Trait turshi::word::FlagBits

source ·
pub trait FlagBits<F> {
Show 16 methods // Required methods fn f_dst_fp(&self) -> F; fn f_op0_fp(&self) -> F; fn f_op1_val(&self) -> F; fn f_op1_fp(&self) -> F; fn f_op1_ap(&self) -> F; fn f_res_add(&self) -> F; fn f_res_mul(&self) -> F; fn f_pc_abs(&self) -> F; fn f_pc_rel(&self) -> F; fn f_pc_jnz(&self) -> F; fn f_ap_add(&self) -> F; fn f_ap_one(&self) -> F; fn f_opc_call(&self) -> F; fn f_opc_ret(&self) -> F; fn f_opc_aeq(&self) -> F; fn f15(&self) -> F;
}
Expand description

This trait contains methods that decompose a field element into CairoWord flagbits

Required Methods§

source

fn f_dst_fp(&self) -> F

Returns bit-flag for destination register as F

source

fn f_op0_fp(&self) -> F

Returns bit-flag for first operand register as F

source

fn f_op1_val(&self) -> F

Returns bit-flag for immediate value for second register as F

source

fn f_op1_fp(&self) -> F

Returns bit-flag for frame pointer for second register as F

source

fn f_op1_ap(&self) -> F

Returns bit-flag for allocation pointer for second regsiter as F

source

fn f_res_add(&self) -> F

Returns bit-flag for addition operation in right side as F

source

fn f_res_mul(&self) -> F

Returns bit-flag for multiplication operation in right side as F

source

fn f_pc_abs(&self) -> F

Returns bit-flag for program counter update being absolute jump as F

source

fn f_pc_rel(&self) -> F

Returns bit-flag for program counter update being relative jump as F

source

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

Returns bit-flag for allocation counter update being a manual addition as F

source

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

Returns bit-flag for operation being a call as F

source

fn f_opc_ret(&self) -> F

Returns bit-flag for operation being a return as F

source

fn f_opc_aeq(&self) -> F

Returns bit-flag for operation being an assert-equal as F

source

fn f15(&self) -> F

Returns bit-flag for 16th position

Implementors§

source§

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

source§

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