Module binius_field::underlier

source ·

Structs§

  • A type that represents a pair of elements of the same underlier type. We use it as an underlier for the ScaledPAckedField type.
  • Unsigned type with a size strictly less than 8 bits.

Traits§

  • Underlier value that can be split into a slice of smaller U values. This trait is unsafe because it allows to reinterpret the memory of a type as a slice of another type.
  • A trait that represents potentially lossy numeric cast. Is a drop-in replacement of as _ in a generic code.
  • A value that can be randomly generated
  • Primitive integer underlying a binary field or packed binary field implementation. Note that this type is not guaranteed to be POD, U1, U2 and U4 have some unused bits.
  • Underlier type that supports bit arithmetic.
  • This trait is needed to make it possible getting the underlier type from already defined type. Bidirectional From trait implementations are not enough, because they do not allow getting underlier type in a generic code.

Type Aliases§