pub(crate) trait FixedLookupTables<F> {
// Required methods
fn is_in_table(
table: &LogupTable<F, LookupTableIDs>,
value: Vec<F>,
) -> Option<usize>;
fn table_pad() -> LogupTable<F, LookupTableIDs>;
fn table_round_constants() -> LogupTable<F, LookupTableIDs>;
fn table_at_most_4() -> LogupTable<F, LookupTableIDs>;
fn table_byte() -> LogupTable<F, LookupTableIDs>;
fn table_range_check_16() -> LogupTable<F, LookupTableIDs>;
fn table_sparse() -> LogupTable<F, LookupTableIDs>;
fn table_reset() -> LogupTable<F, LookupTableIDs>;
fn get_all_tables() -> Vec<LogupTable<F, LookupTableIDs>>;
}Expand description
Trait that creates all the fixed lookup tables used in the VM
Required Methods§
Sourcefn is_in_table(
table: &LogupTable<F, LookupTableIDs>,
value: Vec<F>,
) -> Option<usize>
fn is_in_table( table: &LogupTable<F, LookupTableIDs>, value: Vec<F>, ) -> Option<usize>
Checks whether a value is in a table and returns the position if it is or None otherwise.
Sourcefn table_pad() -> LogupTable<F, LookupTableIDs>
fn table_pad() -> LogupTable<F, LookupTableIDs>
Returns the pad table
Sourcefn table_round_constants() -> LogupTable<F, LookupTableIDs>
fn table_round_constants() -> LogupTable<F, LookupTableIDs>
Returns the round constants table
Sourcefn table_at_most_4() -> LogupTable<F, LookupTableIDs>
fn table_at_most_4() -> LogupTable<F, LookupTableIDs>
Returns the at most 4 table
Sourcefn table_byte() -> LogupTable<F, LookupTableIDs>
fn table_byte() -> LogupTable<F, LookupTableIDs>
Returns the byte table
Sourcefn table_range_check_16() -> LogupTable<F, LookupTableIDs>
fn table_range_check_16() -> LogupTable<F, LookupTableIDs>
Returns the range check 16 table
Sourcefn table_sparse() -> LogupTable<F, LookupTableIDs>
fn table_sparse() -> LogupTable<F, LookupTableIDs>
Returns the sparse table
Sourcefn table_reset() -> LogupTable<F, LookupTableIDs>
fn table_reset() -> LogupTable<F, LookupTableIDs>
Returns the reset table
Sourcefn get_all_tables() -> Vec<LogupTable<F, LookupTableIDs>>
fn get_all_tables() -> Vec<LogupTable<F, LookupTableIDs>>
Returns a vector containing all fixed tables
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.