pub trait FromUintUnchecked {
type Uint: Integer;
// Required method
fn from_uint_unchecked(uint: Self::Uint) -> Self;
}
Expand description
Instantiate a scalar from an unsigned integer without checking for overflow.
Required Associated Types§
Required Methods§
Sourcefn from_uint_unchecked(uint: Self::Uint) -> Self
fn from_uint_unchecked(uint: Self::Uint) -> Self
Instantiate scalar from an unsigned integer without checking whether the value overflows the field modulus.
⚠️ WARNING!
Incorrectly used this can lead to mathematically invalid results, which can lead to potential security vulnerabilities.
Use with care!
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.