fn fromPrimitive(comptime T: type, x: T) InvalidModulusError || OverflowError!Self

Creates a new modulus from a primitive value. The modulus must be odd and larger than 2.

Parameters

T: type,
x: T,