pub struct Bn254 { /* private fields */ }Expand description
The BN254 curve scalar field prime, defined as F_P where P = 21888242871839275222246405745257275088548364400416034343698204186575808495617.
Implementations§
Trait Implementations§
Source§impl<T: Into<Self>> AddAssign<T> for Bn254
impl<T: Into<Self>> AddAssign<T> for Bn254
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
+= operation. Read moreSource§impl<'de> Deserialize<'de> for Bn254
impl<'de> Deserialize<'de> for Bn254
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserializes from raw bytes, which correspond to the Montgomery representation of the field element. Performs a check that the deserialized field element corresponds to a value less than the field modulus, and returns an error otherwise.
Source§impl Distribution<Bn254> for StandardUniform
impl Distribution<Bn254> for StandardUniform
Source§impl DivAssign for Bn254
impl DivAssign for Bn254
Source§fn div_assign(&mut self, rhs: Bn254)
fn div_assign(&mut self, rhs: Bn254)
/= operation. Read moreSource§impl<const WIDTH: usize> ExternalLayer<Bn254, WIDTH, BN254_S_BOX_DEGREE> for ExternalLayerConstants<Bn254, WIDTH>
impl<const WIDTH: usize> ExternalLayer<Bn254, WIDTH, BN254_S_BOX_DEGREE> for ExternalLayerConstants<Bn254, WIDTH>
Source§fn permute_state_initial(&self, state: &mut [Bn254; WIDTH])
fn permute_state_initial(&self, state: &mut [Bn254; WIDTH])
Perform the initial external layers of the Poseidon2 permutation on the given state.
Source§fn permute_state_terminal(&self, state: &mut [Bn254; WIDTH])
fn permute_state_terminal(&self, state: &mut [Bn254; WIDTH])
Perform the terminal external layers of the Poseidon2 permutation on the given state.
Source§impl<const WIDTH: usize> ExternalLayerConstructor<Bn254, WIDTH> for ExternalLayerConstants<Bn254, WIDTH>
impl<const WIDTH: usize> ExternalLayerConstructor<Bn254, WIDTH> for ExternalLayerConstants<Bn254, WIDTH>
Source§fn new_from_constants(external_constants: Self) -> Self
fn new_from_constants(external_constants: Self) -> Self
Source§impl Field for Bn254
impl Field for Bn254
Source§const GENERATOR: Self
const GENERATOR: Self
The Montgomery form of the BN254 field element 5 which generates the multiplicative group.
Can check this in SageMath by running:
BN254_prime = 21888242871839275222246405745257275088548364400416034343698204186575808495617
BN254_field = GF(BN254_prime)
BN254_field(5).multiplicative_order()Equal to 9866131518759821339448375666750386964092448917385927261134611188594627313638
Source§fn order() -> BigUint
fn order() -> BigUint
r = 21888242871839275222246405745257275088548364400416034343698204186575808495617
type Packing = Bn254
Source§fn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Source§fn try_inverse(&self) -> Option<Self>
fn try_inverse(&self) -> Option<Self>
Source§fn is_one(&self) -> bool
fn is_one(&self) -> bool
Source§fn add_slices(slice_1: &mut [Self], slice_2: &[Self])
fn add_slices(slice_1: &mut [Self], slice_2: &[Self])
Source§impl InjectiveMonomial<5> for Bn254
Degree of the smallest permutation polynomial for BN254.
impl InjectiveMonomial<5> for Bn254
Degree of the smallest permutation polynomial for BN254.
As p - 1 is divisible by 2 and 3 the smallest choice for a degree D satisfying gcd(p - 1, D) = 1 is 5.
Source§fn injective_exp_n(&self) -> Self
fn injective_exp_n(&self) -> Self
x -> x^n for a given n > 1 such that this
map is injective.Source§impl<T: Into<Self>> MulAssign<T> for Bn254
impl<T: Into<Self>> MulAssign<T> for Bn254
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
*= operation. Read moreSource§impl Ord for Bn254
impl Ord for Bn254
Source§impl PartialOrd for Bn254
impl PartialOrd for Bn254
Source§impl PrimeCharacteristicRing for Bn254
impl PrimeCharacteristicRing for Bn254
Source§const ONE: Self
const ONE: Self
The Montgomery form of the BN254 field element 1.
Equal to 2^256 mod P = 6350874878119819312338956282401532410528162663560392320966563075034087161851
Source§const TWO: Self
const TWO: Self
The Montgomery form of the BN254 field element 2.
Equal to 2^257 mod P = 12701749756239638624677912564803064821056325327120784641933126150068174323702
Source§const NEG_ONE: Self
const NEG_ONE: Self
The Montgomery form of the BN254 field element -1.
Equal to -2^256 mod P = 15537367993719455909907449462855742678020201736855642022731641111541721333766
Source§type PrimeSubfield = Bn254
type PrimeSubfield = Bn254
ℤ/p where the characteristic of this ring is p.Source§fn from_prime_subfield(f: Self::PrimeSubfield) -> Self
fn from_prime_subfield(f: Self::PrimeSubfield) -> Self
Source§fn from_usize(int: usize) -> Self
fn from_usize(int: usize) -> Self
Source§fn from_isize(int: isize) -> Self
fn from_isize(int: isize) -> Self
Source§fn xor(&self, y: &Self) -> Self
fn xor(&self, y: &Self) -> Self
xor. Read moreSource§fn xor3(&self, y: &Self, z: &Self) -> Self
fn xor3(&self, y: &Self, z: &Self) -> Self
xor. Read moreSource§fn bool_check(&self) -> Self
fn bool_check(&self) -> Self
x * (x - 1). Read moreSource§fn exp_const_u64<const POWER: u64>(&self) -> Self
fn exp_const_u64<const POWER: u64>(&self) -> Self
Source§fn exp_power_of_2(&self, power_log: usize) -> Self
fn exp_power_of_2(&self, power_log: usize) -> Self
exp_power_of_2(a, power_log) = a^{2^power_log}. Read moreSource§fn mul_2exp_u64(&self, exp: u64) -> Self
fn mul_2exp_u64(&self, exp: u64) -> Self
mul_2exp_u64(a, exp) = a * 2^{exp}. Read moreSource§fn div_2exp_u64(&self, exp: u64) -> Self
fn div_2exp_u64(&self, exp: u64) -> Self
div_2exp_u64(a, exp) = a/2^exp Read moreSource§fn powers(&self) -> Powers<Self>
fn powers(&self) -> Powers<Self>
self: self^0, self^1, self^2, ....Source§fn shifted_powers(&self, start: Self) -> Powers<Self>
fn shifted_powers(&self, start: Self) -> Powers<Self>
self shifted by start: start, start*self^1, start*self^2, ....Source§fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self
fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self
Source§fn sum_array<const N: usize>(input: &[Self]) -> Self
fn sum_array<const N: usize>(input: &[Self]) -> Self
Source§fn zero_vec(len: usize) -> Vec<Self>
fn zero_vec(len: usize) -> Vec<Self>
len. Many operating systems zero pages
before assigning them to a userspace process. In that case, our process should not need to
write zeros, which would be redundant. However, the compiler may not always recognize this. Read moreSource§impl PrimeField for Bn254
impl PrimeField for Bn254
Source§fn as_canonical_biguint(&self) -> BigUint
fn as_canonical_biguint(&self) -> BigUint
value in canonical form
which lies in the range 0 <= x < self.order().Source§impl QuotientMap<i128> for Bn254
impl QuotientMap<i128> for Bn254
Source§fn from_int(int: i128) -> Self
fn from_int(int: i128) -> Self
Due to the size of the BN254 prime, the input value is always canonical.
Source§fn from_canonical_checked(int: i128) -> Option<Self>
fn from_canonical_checked(int: i128) -> Option<Self>
Due to the size of the BN254 prime, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i128) -> Self
unsafe fn from_canonical_unchecked(int: i128) -> Self
Due to the size of the BN254 prime, the input value is always canonical.
Source§impl QuotientMap<i16> for Bn254
impl QuotientMap<i16> for Bn254
Source§fn from_int(int: i16) -> Self
fn from_int(int: i16) -> Self
Convert a given i16 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i16) -> Option<Self>
fn from_canonical_checked(int: i16) -> Option<Self>
Convert a given i16 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i16) -> Self
unsafe fn from_canonical_unchecked(int: i16) -> Self
Convert a given i16 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<i32> for Bn254
impl QuotientMap<i32> for Bn254
Source§fn from_int(int: i32) -> Self
fn from_int(int: i32) -> Self
Convert a given i32 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i32) -> Option<Self>
fn from_canonical_checked(int: i32) -> Option<Self>
Convert a given i32 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i32) -> Self
unsafe fn from_canonical_unchecked(int: i32) -> Self
Convert a given i32 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<i64> for Bn254
impl QuotientMap<i64> for Bn254
Source§fn from_int(int: i64) -> Self
fn from_int(int: i64) -> Self
Convert a given i64 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i64) -> Option<Self>
fn from_canonical_checked(int: i64) -> Option<Self>
Convert a given i64 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i64) -> Self
unsafe fn from_canonical_unchecked(int: i64) -> Self
Convert a given i64 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<i8> for Bn254
impl QuotientMap<i8> for Bn254
Source§fn from_int(int: i8) -> Self
fn from_int(int: i8) -> Self
Convert a given i8 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: i8) -> Option<Self>
fn from_canonical_checked(int: i8) -> Option<Self>
Convert a given i8 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: i8) -> Self
unsafe fn from_canonical_unchecked(int: i8) -> Self
Convert a given i8 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u128> for Bn254
impl QuotientMap<u128> for Bn254
Source§fn from_int(int: u128) -> Self
fn from_int(int: u128) -> Self
Due to the size of the BN254 prime, the input value is always canonical.
Source§fn from_canonical_checked(int: u128) -> Option<Self>
fn from_canonical_checked(int: u128) -> Option<Self>
Due to the size of the BN254 prime, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u128) -> Self
unsafe fn from_canonical_unchecked(int: u128) -> Self
Due to the size of the BN254 prime, the input value is always canonical.
Source§impl QuotientMap<u16> for Bn254
impl QuotientMap<u16> for Bn254
Source§fn from_int(int: u16) -> Self
fn from_int(int: u16) -> Self
Convert a given u16 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u16) -> Option<Self>
fn from_canonical_checked(int: u16) -> Option<Self>
Convert a given u16 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u16) -> Self
unsafe fn from_canonical_unchecked(int: u16) -> Self
Convert a given u16 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u32> for Bn254
impl QuotientMap<u32> for Bn254
Source§fn from_int(int: u32) -> Self
fn from_int(int: u32) -> Self
Convert a given u32 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u32) -> Option<Self>
fn from_canonical_checked(int: u32) -> Option<Self>
Convert a given u32 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u32) -> Self
unsafe fn from_canonical_unchecked(int: u32) -> Self
Convert a given u32 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u64> for Bn254
impl QuotientMap<u64> for Bn254
Source§fn from_int(int: u64) -> Self
fn from_int(int: u64) -> Self
Convert a given u64 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u64) -> Option<Self>
fn from_canonical_checked(int: u64) -> Option<Self>
Convert a given u64 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u64) -> Self
unsafe fn from_canonical_unchecked(int: u64) -> Self
Convert a given u64 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl QuotientMap<u8> for Bn254
impl QuotientMap<u8> for Bn254
Source§fn from_int(int: u8) -> Self
fn from_int(int: u8) -> Self
Convert a given u8 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§fn from_canonical_checked(int: u8) -> Option<Self>
fn from_canonical_checked(int: u8) -> Option<Self>
Convert a given u8 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§unsafe fn from_canonical_unchecked(int: u8) -> Self
unsafe fn from_canonical_unchecked(int: u8) -> Self
Convert a given u8 integer into an element of the Bn254 field.
Due to the integer type, the input value is always canonical.
Source§impl RawDataSerializable for Bn254
impl RawDataSerializable for Bn254
Source§const NUM_BYTES: usize = 32usize
const NUM_BYTES: usize = 32usize
Source§fn into_bytes(self) -> [u8; 32]
fn into_bytes(self) -> [u8; 32]
Source§fn into_u32_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u32>
fn into_u32_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u32>
Source§fn into_u64_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u64>
fn into_u64_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u64>
Source§fn into_parallel_byte_streams<const N: usize>(
input: impl IntoIterator<Item = [Self; N]>,
) -> impl IntoIterator<Item = [u8; N]>
fn into_parallel_byte_streams<const N: usize>( input: impl IntoIterator<Item = [Self; N]>, ) -> impl IntoIterator<Item = [u8; N]>
Source§fn into_parallel_u32_streams<const N: usize>(
input: impl IntoIterator<Item = [Self; N]>,
) -> impl IntoIterator<Item = [u32; N]>
fn into_parallel_u32_streams<const N: usize>( input: impl IntoIterator<Item = [Self; N]>, ) -> impl IntoIterator<Item = [u32; N]>
Source§fn into_parallel_u64_streams<const N: usize>(
input: impl IntoIterator<Item = [Self; N]>,
) -> impl IntoIterator<Item = [u64; N]>
fn into_parallel_u64_streams<const N: usize>( input: impl IntoIterator<Item = [Self; N]>, ) -> impl IntoIterator<Item = [u64; N]>
Source§fn into_byte_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u8>
fn into_byte_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u8>
Source§impl<T: Into<Self>> SubAssign<T> for Bn254
impl<T: Into<Self>> SubAssign<T> for Bn254
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
-= operation. Read moreSource§impl TwoAdicField for Bn254
impl TwoAdicField for Bn254
Source§const TWO_ADICITY: usize = 28usize
const TWO_ADICITY: usize = 28usize
Source§fn two_adic_generator(bits: usize) -> Self
fn two_adic_generator(bits: usize) -> Self
2^bits.
Assumes bits <= TWO_ADICITY, otherwise the result is undefined.impl Copy for Bn254
impl Eq for Bn254
impl Packable for Bn254
impl StructuralPartialEq for Bn254
Auto Trait Implementations§
impl Freeze for Bn254
impl RefUnwindSafe for Bn254
impl Send for Bn254
impl Sync for Bn254
impl Unpin for Bn254
impl UnwindSafe for Bn254
Blanket Implementations§
Source§impl<F> BasedVectorSpace<F> for Fwhere
F: PrimeCharacteristicRing,
impl<F> BasedVectorSpace<F> for Fwhere
F: PrimeCharacteristicRing,
Source§const DIMENSION: usize = 1usize
const DIMENSION: usize = 1usize
Source§fn as_basis_coefficients_slice(&self) -> &[F]
fn as_basis_coefficients_slice(&self) -> &[F]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn>(f: Fn) -> F
fn from_basis_coefficients_fn<Fn>(f: Fn) -> F
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I>(iter: I) -> Option<F>where
I: ExactSizeIterator<Item = F>,
fn from_basis_coefficients_iter<I>(iter: I) -> Option<F>where
I: ExactSizeIterator<Item = F>,
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn flatten_to_base(vec: Vec<F>) -> Vec<F>
fn flatten_to_base(vec: Vec<F>) -> Vec<F>
Source§fn reconstitute_from_base(vec: Vec<F>) -> Vec<F>
fn reconstitute_from_base(vec: Vec<F>) -> Vec<F>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> ExtensionField<F> for Fwhere
F: Field,
impl<F> ExtensionField<F> for Fwhere
F: Field,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F> PackedField for Fwhere
F: Field,
impl<F> PackedField for Fwhere
F: Field,
type Scalar = F
Source§fn packed_powers(base: Self::Scalar) -> Powers<Self>
fn packed_powers(base: Self::Scalar) -> Powers<Self>
base packed into packed field elements. Read moreSource§impl<F> PackedFieldPow2 for Fwhere
F: Field,
impl<F> PackedFieldPow2 for Fwhere
F: Field,
Source§impl<T> PackedValue for Twhere
T: Packable,
impl<T> PackedValue for Twhere
T: Packable,
Source§fn from_slice(slice: &[<T as PackedValue>::Value]) -> &T
fn from_slice(slice: &[<T as PackedValue>::Value]) -> &T
Source§fn from_slice_mut(slice: &mut [<T as PackedValue>::Value]) -> &mut T
fn from_slice_mut(slice: &mut [<T as PackedValue>::Value]) -> &mut T
Source§fn from_fn<Fn>(f: Fn) -> T
fn from_fn<Fn>(f: Fn) -> T
Source§fn as_slice(&self) -> &[<T as PackedValue>::Value]
fn as_slice(&self) -> &[<T as PackedValue>::Value]
Source§fn as_slice_mut(&mut self) -> &mut [<T as PackedValue>::Value]
fn as_slice_mut(&mut self) -> &mut [<T as PackedValue>::Value]
Source§fn pack_slice(buf: &[Self::Value]) -> &[Self]
fn pack_slice(buf: &[Self::Value]) -> &[Self]
Source§fn pack_slice_with_suffix(buf: &[Self::Value]) -> (&[Self], &[Self::Value])
fn pack_slice_with_suffix(buf: &[Self::Value]) -> (&[Self], &[Self::Value])
Source§fn pack_slice_mut(buf: &mut [Self::Value]) -> &mut [Self]
fn pack_slice_mut(buf: &mut [Self::Value]) -> &mut [Self]
Source§fn pack_maybe_uninit_slice_mut(
buf: &mut [MaybeUninit<Self::Value>],
) -> &mut [MaybeUninit<Self>]
fn pack_maybe_uninit_slice_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> &mut [MaybeUninit<Self>]
Source§fn pack_slice_with_suffix_mut(
buf: &mut [Self::Value],
) -> (&mut [Self], &mut [Self::Value])
fn pack_slice_with_suffix_mut( buf: &mut [Self::Value], ) -> (&mut [Self], &mut [Self::Value])
Source§fn pack_maybe_uninit_slice_with_suffix_mut(
buf: &mut [MaybeUninit<Self::Value>],
) -> (&mut [MaybeUninit<Self>], &mut [MaybeUninit<Self::Value>])
fn pack_maybe_uninit_slice_with_suffix_mut( buf: &mut [MaybeUninit<Self::Value>], ) -> (&mut [MaybeUninit<Self>], &mut [MaybeUninit<Self::Value>])
Source§fn unpack_slice(buf: &[Self]) -> &[Self::Value]
fn unpack_slice(buf: &[Self]) -> &[Self::Value]
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<F> QuotientMap<isize> for Fwhere
F: QuotientMap<i8> + QuotientMap<i16> + QuotientMap<i32> + QuotientMap<i64> + QuotientMap<i128>,
impl<F> QuotientMap<isize> for Fwhere
F: QuotientMap<i8> + QuotientMap<i16> + QuotientMap<i32> + QuotientMap<i64> + QuotientMap<i128>,
Source§fn from_int(int: isize) -> F
fn from_int(int: isize) -> F
We use the from_int method of the primitive integer type identical to isize on this machine
Source§fn from_canonical_checked(int: isize) -> Option<F>
fn from_canonical_checked(int: isize) -> Option<F>
We use the from_canonical_checked method of the primitive integer type identical to isize on this machine
Source§unsafe fn from_canonical_unchecked(int: isize) -> F
unsafe fn from_canonical_unchecked(int: isize) -> F
We use the from_canonical_unchecked method of the primitive integer type identical to isize on this machine
Source§impl<F> QuotientMap<usize> for Fwhere
F: QuotientMap<u8> + QuotientMap<u16> + QuotientMap<u32> + QuotientMap<u64> + QuotientMap<u128>,
impl<F> QuotientMap<usize> for Fwhere
F: QuotientMap<u8> + QuotientMap<u16> + QuotientMap<u32> + QuotientMap<u64> + QuotientMap<u128>,
Source§fn from_int(int: usize) -> F
fn from_int(int: usize) -> F
We use the from_int method of the primitive integer type identical to usize on this machine
Source§fn from_canonical_checked(int: usize) -> Option<F>
fn from_canonical_checked(int: usize) -> Option<F>
We use the from_canonical_checked method of the primitive integer type identical to usize on this machine
Source§unsafe fn from_canonical_unchecked(int: usize) -> F
unsafe fn from_canonical_unchecked(int: usize) -> F
We use the from_canonical_unchecked method of the primitive integer type identical to usize on this machine