binius_field::packed_extension

Trait PackedExtensionIndexable

Source
pub trait PackedExtensionIndexable<F: Field>: PackedExtension<F>{
    // Provided methods
    fn unpack_base_scalars(packed: &[Self]) -> &[F] { ... }
    fn unpack_base_scalars_mut(packed: &mut [Self]) -> &mut [F] { ... }
}
Expand description

This trait adds shortcut methods for the case PackedExtension<F, PackedSubfield: PackedFieldIndexable> which is a quite common case in our codebase.

Provided Methods§

Source

fn unpack_base_scalars(packed: &[Self]) -> &[F]

Source

fn unpack_base_scalars_mut(packed: &mut [Self]) -> &mut [F]

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.

Implementors§

Source§

impl<F, PT> PackedExtensionIndexable<F> for PT
where F: Field, PT: PackedExtension<F, Scalar: ExtensionField<F>, PackedSubfield: PackedFieldIndexable>,