Module packed_extension

Source

Traits§

PackedExtension
Trait represents a relationship between a packed struct of field elements and a packed struct of elements from an extension field.
RepackedExtension
This trait is a shorthand for the case PackedExtension<P::Scalar, PackedSubfield = P> which is a quite common case in our codebase.

Functions§

is_packed_field_indexable
Check if P implements PackedFieldIndexable. This functions gets optimized out by the compiler so if it is used in a generic context as an if condition, the non-meaningful branch will be optimized out.
recast_packed
Recast a packed field from one subfield of a packed extension to another.
recast_packed_mut
Recast a mutable slice of packed field elements from one subfield of a packed extension to another.
recast_packed_slice
Recast a slice of packed field elements from one subfield of a packed extension to another.

Type Aliases§

PackedSubfield
Convenient type alias that returns the packed field type for the scalar field F and packed extension P.