binius_field::byte_iteration

Trait ScalarsCollection

Source
pub trait ScalarsCollection<T> {
    // Required methods
    fn len(&self) -> usize;
    fn get(&self, i: usize) -> T;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Scalars collection abstraction. This trait is used to abstract over different types of collections of field elements.

Required Methods§

Source

fn len(&self) -> usize

Source

fn get(&self, i: usize) -> T

Provided Methods§

Source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl<F: Field> ScalarsCollection<F> for &[F]

Source§

fn len(&self) -> usize

Source§

fn get(&self, i: usize) -> F

Implementors§