pub trait GpuField: GpuName {
// Required methods
fn one() -> Vec<u32>;
fn r2() -> Vec<u32>;
fn modulus() -> Vec<u32>;
// Provided method
fn sub_field_name() -> Option<String> { ... }
}
Expand description
A prime field that returns the values in a representation that is suited for the use on a GPU.
Required Methods§
sourcefn one() -> Vec<u32>
fn one() -> Vec<u32>
Returns 1
as a vector of 32-bit limbs in little-endian non-Montgomery form (least
significant limb first).
Provided Methods§
sourcefn sub_field_name() -> Option<String>
fn sub_field_name() -> Option<String>
If the field is an extension field, then the name of the sub-field is returned.
Object Safety§
This trait is not object safe.