Module packed_extension Copy item path Source PackedDivisible Trait represents a relationship between a packed struct of field elements and a smaller packed
struct the same field elements. PackedExtension Trait represents a relationship between a packed struct of field elements and a packed struct
of elements from an extension field. PackedExtensionIndexable This trait adds shortcut methods for the case PackedExtension<F, PackedSubfield: PackedFieldIndexable>
which is a
quite common case in our codebase. PackedFieldIndexable A PackedField
that can be safely cast to indexable slices of scalars. RepackedExtension This trait is a shorthand for the case PackedExtension<P::Scalar, PackedSubfield = P>
which is a
quite common case in our codebase. 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. unpack_if_possible unpack_if_possible_mut PackedSubfield Convenient type alias that returns the packed field type for the scalar field F
and packed
extension P
.