Trait turshi::word::FlagSets

source ·
pub trait FlagSets<F> {
    // Required methods
    fn dst_reg(&self) -> u8;
    fn op0_reg(&self) -> u8;
    fn op1_src(&self) -> u8;
    fn res_log(&self) -> u8;
    fn pc_up(&self) -> u8;
    fn ap_up(&self) -> u8;
    fn opcode(&self) -> u8;
}
Expand description

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

Required Methods§

source

fn dst_reg(&self) -> u8

Returns flagset for destination register

source

fn op0_reg(&self) -> u8

Returns flagset for first operand register

source

fn op1_src(&self) -> u8

Returns flagset for second operand register

source

fn res_log(&self) -> u8

Returns flagset for result logics

source

fn pc_up(&self) -> u8

Returns flagset for program counter update

source

fn ap_up(&self) -> u8

Returns flagset for allocation pointer update

source

fn opcode(&self) -> u8

Returns flagset for operation code

Implementors§

source§

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