[−][src]Struct zkp_u256::U256
Implementations
impl U256
[src]
pub fn from_bytes_be(n: &[u8; 32]) -> Self
[src]
pub fn to_bytes_be(&self) -> [u8; 32]
[src]
impl U256
[src]
pub fn as_u8(&self) -> u8
[src]
pub fn as_u16(&self) -> u16
[src]
pub fn as_u32(&self) -> u32
[src]
pub fn as_u64(&self) -> u64
[src]
pub fn as_usize(&self) -> usize
[src]
pub fn as_i8(&self) -> i8
[src]
pub fn as_i16(&self) -> i16
[src]
pub fn as_i32(&self) -> i32
[src]
pub fn as_i64(&self) -> i64
[src]
pub fn as_isize(&self) -> isize
[src]
pub fn as_u128(&self) -> u128
[src]
pub fn as_i128(&self) -> i128
[src]
impl U256
[src]
pub fn from_decimal_str(s: &str) -> Result<Self, ParseError>
[src]
pub fn to_decimal_string(&self) -> String
[src]
pub fn to_hex_string(&self) -> String
[src]
pub fn from_hex_str(s: &str) -> Self
[src]
impl U256
[src]
pub fn mulmod(&self, rhs: &Self, modulus: &Self) -> Self
[src]
Note: if modulus
is a constant, it is faster to use
montgomery::mulmod
with precomputed parameters.
impl U256
[src]
pub const MAX: Self
[src]
pub const ONE: Self
[src]
pub const ZERO: Self
[src]
pub const fn from_limbs(limbs: [u64; 4]) -> Self
[src]
pub const fn as_limbs(&self) -> &[u64; 4]
[src]
pub fn limb(&self, index: usize) -> u64
[src]
pub fn set_limb(&mut self, index: usize, value: u64)
[src]
Trait Implementations
impl<'_, '_> Add<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: &U256) -> U256
[src]
impl<'_> Add<&'_ U256> for U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: &U256) -> U256
[src]
impl<'_> Add<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: U256) -> U256
[src]
impl Add<U256> for U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: U256) -> U256
[src]
impl<'_> AddAssign<&'_ U256> for U256
[src]
pub fn add_assign(&mut self, rhs: &U256)
[src]
impl AddAssign<U256> for U256
[src]
pub fn add_assign(&mut self, rhs: U256)
[src]
impl<'_> AddFullInline<&'_ U256> for U256
[src]
type High = u64
pub fn add_full_inline(&self, rhs: &Self) -> (Self, Self::High)
[src]
pub fn add_full_assign_inline(&mut self, rhs: Rhs) -> Self::High
[src]
pub fn add_full(&self, rhs: Rhs) -> (Self, Self::High)
[src]
pub fn add_full_assign(&mut self, rhs: Rhs) -> Self::High
[src]
impl<'_> AddInline<&'_ U256> for U256
[src]
pub fn add_inline(&self, rhs: &Self) -> Self
[src]
pub fn add_assign_inline(&mut self, rhs: Rhs)
[src]
pub fn add(&self, rhs: Rhs) -> Self
[src]
pub fn add_assign(&mut self, rhs: Rhs)
[src]
impl Binary for U256
[src]
pub fn num_bits() -> usize
[src]
pub fn bit(&self, i: usize) -> bool
[src]
pub fn count_ones(&self) -> usize
[src]
pub fn count_zeros(&self) -> usize
[src]
pub fn leading_zeros(&self) -> usize
[src]
pub fn trailing_zeros(&self) -> usize
[src]
pub fn rotate_left(&self, _n: usize) -> Self
[src]
pub fn rotate_right(&self, _n: usize) -> Self
[src]
pub fn bits(&self) -> usize
[src]
pub fn most_significant_bit(&self) -> Option<usize>
[src]
impl<'_> BitAnd<&'_ U256> for U256
[src]
type Output = Self
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: &Self) -> Self
[src]
impl<'_, '_> BitAnd<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: &U256) -> U256
[src]
impl BitAnd<U256> for U256
[src]
type Output = Self
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: Self) -> Self
[src]
impl<'_> BitAnd<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: U256) -> U256
[src]
impl<'_> BitAnd<u64> for &'_ U256
[src]
type Output = u64
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: u64) -> u64
[src]
impl<'_> BitAndAssign<&'_ U256> for U256
[src]
pub fn bitand_assign(&mut self, rhs: &Self)
[src]
impl BitAndAssign<U256> for U256
[src]
pub fn bitand_assign(&mut self, rhs: Self)
[src]
impl<'_> BitOr<&'_ U256> for U256
[src]
type Output = Self
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: &Self) -> Self
[src]
impl<'_, '_> BitOr<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: &U256) -> U256
[src]
impl BitOr<U256> for U256
[src]
type Output = Self
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: Self) -> Self
[src]
impl<'_> BitOr<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: U256) -> U256
[src]
impl<'_> BitOrAssign<&'_ U256> for U256
[src]
pub fn bitor_assign(&mut self, rhs: &Self)
[src]
impl BitOrAssign<U256> for U256
[src]
pub fn bitor_assign(&mut self, rhs: Self)
[src]
impl<'_> BitXor<&'_ U256> for U256
[src]
type Output = Self
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: &Self) -> Self
[src]
impl<'_, '_> BitXor<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: &U256) -> U256
[src]
impl BitXor<U256> for U256
[src]
type Output = Self
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: Self) -> Self
[src]
impl<'_> BitXor<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: U256) -> U256
[src]
impl<'_> BitXorAssign<&'_ U256> for U256
[src]
pub fn bitxor_assign(&mut self, rhs: &Self)
[src]
impl BitXorAssign<U256> for U256
[src]
pub fn bitxor_assign(&mut self, rhs: Self)
[src]
impl Bounded for U256
[src]
impl Clone for U256
[src]
impl Debug for U256
[src]
impl Default for U256
[src]
impl<'a> Deserialize<'a> for U256
[src]
pub fn deserialize<D: Deserializer<'a>>(
deserializer: D
) -> Result<Self, D::Error>
[src]
deserializer: D
) -> Result<Self, D::Error>
impl Display for U256
[src]
impl Distribution<U256> for Standard
[src]
Draw from a uniform distribution over all values.
pub fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> U256
[src]
pub fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
impl<'_> Div<&'_ U256> for U256
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, rhs: &Self) -> Self
[src]
impl<'_, '_> Div<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the /
operator.
pub fn div(self, rhs: &U256) -> U256
[src]
impl Div<U256> for U256
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, rhs: Self) -> Self
[src]
impl<'_> Div<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the /
operator.
pub fn div(self, rhs: U256) -> U256
[src]
impl<'_> DivAssign<&'_ U256> for U256
[src]
pub fn div_assign(&mut self, rhs: &Self)
[src]
impl DivAssign<U256> for U256
[src]
pub fn div_assign(&mut self, rhs: Self)
[src]
impl<'_> DivRem<&'_ U256> for U256
[src]
type Quotient = Self
type Remainder = Self
pub fn div_rem(&self, rhs: &Self) -> Option<(Self, Self)>
[src]
impl DivRem<u64> for U256
[src]
impl Eq for U256
[src]
impl From<bool> for U256
[src]
impl From<i128> for U256
[src]
impl From<i16> for U256
[src]
impl From<i32> for U256
[src]
impl From<i64> for U256
[src]
impl From<i8> for U256
[src]
impl From<isize> for U256
[src]
impl From<u128> for U256
[src]
impl From<u16> for U256
[src]
impl From<u32> for U256
[src]
impl From<u64> for U256
[src]
impl From<u8> for U256
[src]
impl From<usize> for U256
[src]
impl FromPrimitive for U256
[src]
pub fn from_i64(n: i64) -> Option<Self>
[src]
pub fn from_u64(n: u64) -> Option<Self>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl GCD for U256
[src]
pub fn gcd(a: &Self, b: &Self) -> Self
[src]
pub fn gcd_extended(a: &Self, b: &Self) -> (Self, Self, Self, bool)
[src]
impl Hash for U256
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'_> Inv for &'_ U256
[src]
Ring inversion.
type Output = Option<U256>
The result after applying the operator.
pub fn inv(self) -> Self::Output
[src]
Computes the inverse modulo 2^256
impl InvMod for U256
[src]
pub fn inv_mod(&self, modulus: &Self) -> Option<Self>
[src]
Computes the inverse modulo a given modulus
impl Montgomery for U256
[src]
pub fn reduce_1_inline<M: MontgomeryParameters<UInt = U256>>(&self) -> Self
[src]
pub fn redc_inline<M: MontgomeryParameters<UInt = U256>>(
lo: &Self,
hi: &Self
) -> Self
[src]
lo: &Self,
hi: &Self
) -> Self
pub fn square_redc_inline<M: MontgomeryParameters<UInt = U256>>(&self) -> Self
[src]
pub fn mul_redc_inline<M: MontgomeryParameters<UInt = U256>>(
&self,
rhs: &Self
) -> Self
[src]
&self,
rhs: &Self
) -> Self
pub fn inv_redc<M: MontgomeryParameters<UInt = U256>>(&self) -> Option<Self>
[src]
pub fn to_montgomery<M: MontgomeryParameters<UInt = Self>>(&self) -> Self
[src]
pub fn from_montgomery<M: MontgomeryParameters<UInt = Self>>(&self) -> Self
[src]
pub fn reduce_1<M: MontgomeryParameters<UInt = Self>>(&self) -> Self
[src]
pub fn redc<M: MontgomeryParameters<UInt = Self>>(lo: &Self, hi: &Self) -> Self
[src]
pub fn square_redc<M: MontgomeryParameters<UInt = Self>>(&self) -> Self
[src]
pub fn mul_redc<M: MontgomeryParameters<UInt = Self>>(&self, rhs: &Self) -> Self
[src]
pub fn mul_mod<M: MontgomeryParameters<UInt = Self>>(&self, rhs: &Self) -> Self
[src]
impl<'_, '_> Mul<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: &U256) -> U256
[src]
impl<'_> Mul<&'_ U256> for U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: &U256) -> U256
[src]
impl<'_> Mul<&'_ U256> for u64
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: &U256) -> U256
[src]
impl<'_> Mul<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: U256) -> U256
[src]
impl Mul<U256> for U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: U256) -> U256
[src]
impl Mul<U256> for u64
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: U256) -> U256
[src]
impl Mul<u64> for U256
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: u64) -> Self
[src]
impl<'_> Mul<u64> for &'_ U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: u64) -> U256
[src]
impl<'_> MulAdd<&'_ U256, &'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the fused multiply-add.
pub fn mul_add(self, a: Self, b: Self) -> Self::Output
[src]
impl<'_, '_> MulAddAssign<&'_ U256, &'_ U256> for U256
[src]
pub fn mul_add_assign(&mut self, a: &Self, b: &Self)
[src]
impl<'_> MulAssign<&'_ U256> for U256
[src]
pub fn mul_assign(&mut self, rhs: &U256)
[src]
impl MulAssign<U256> for U256
[src]
pub fn mul_assign(&mut self, rhs: U256)
[src]
impl MulAssign<u64> for U256
[src]
pub fn mul_assign(&mut self, rhs: u64)
[src]
impl<'_> MulFullInline<&'_ U256> for U256
[src]
type High = Self
pub fn mul_full_inline(&self, rhs: &Self) -> (Self, Self)
[src]
pub fn mul_full_assign_inline(&mut self, rhs: Rhs) -> Self::High
[src]
pub fn mul_full(&self, rhs: Rhs) -> (Self, Self::High)
[src]
pub fn mul_full_assign(&self, rhs: Rhs) -> (Self, Self::High)
[src]
impl MulFullInline<u64> for U256
[src]
type High = u64
pub fn mul_full_inline(&self, rhs: u64) -> (Self, u64)
[src]
pub fn mul_full_assign_inline(&mut self, rhs: Rhs) -> Self::High
[src]
pub fn mul_full(&self, rhs: Rhs) -> (Self, Self::High)
[src]
pub fn mul_full_assign(&self, rhs: Rhs) -> (Self, Self::High)
[src]
impl<'_> MulInline<&'_ U256> for U256
[src]
pub fn mul_inline(&self, rhs: &Self) -> Self
[src]
pub fn mul_assign_inline(&mut self, rhs: Rhs)
[src]
pub fn mul(&self, rhs: Rhs) -> Self
[src]
pub fn mul_assign(&mut self, rhs: Rhs)
[src]
impl MulInline<u64> for U256
[src]
pub fn mul_inline(&self, rhs: u64) -> Self
[src]
pub fn mul_assign_inline(&mut self, rhs: Rhs)
[src]
pub fn mul(&self, rhs: Rhs) -> Self
[src]
pub fn mul_assign(&mut self, rhs: Rhs)
[src]
impl Neg for U256
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn neg(self) -> Self::Output
[src]
impl NegInline for U256
[src]
pub fn neg_inline(&self) -> Self
[src]
pub fn neg_assign_inline(&mut self)
[src]
pub fn neg(&self) -> Self
[src]
pub fn neg_assign(&mut self)
[src]
impl Not for U256
[src]
impl Num for U256
[src]
type FromStrRadixErr = ()
pub fn from_str_radix(
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
[src]
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
impl One for U256
[src]
impl Ord for U256
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<U256> for U256
[src]
impl PartialOrd<U256> for U256
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> Pow<u64> for &'_ U256
[src]
impl Product<U256> for U256
[src]
impl<'_> Rem<&'_ U256> for U256
[src]
type Output = Self
The resulting type after applying the %
operator.
pub fn rem(self, rhs: &Self) -> Self
[src]
impl<'_, '_> Rem<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the %
operator.
pub fn rem(self, rhs: &U256) -> U256
[src]
impl Rem<U256> for U256
[src]
type Output = Self
The resulting type after applying the %
operator.
pub fn rem(self, rhs: Self) -> Self
[src]
impl<'_> Rem<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the %
operator.
pub fn rem(self, rhs: U256) -> U256
[src]
impl<'_> RemAssign<&'_ U256> for U256
[src]
pub fn rem_assign(&mut self, rhs: &Self)
[src]
impl RemAssign<U256> for U256
[src]
pub fn rem_assign(&mut self, rhs: Self)
[src]
impl SampleUniform for U256
[src]
type Sampler = UniformU256
The UniformSampler
implementation supporting type X
.
impl Serialize for U256
[src]
impl Shl<usize> for U256
[src]
type Output = Self
The resulting type after applying the <<
operator.
pub fn shl(self, rhs: usize) -> Self
[src]
impl ShlAssign<usize> for U256
[src]
pub fn shl_assign(&mut self, rhs: usize)
[src]
impl Shr<usize> for U256
[src]
type Output = Self
The resulting type after applying the >>
operator.
pub fn shr(self, rhs: usize) -> Self
[src]
impl ShrAssign<usize> for U256
[src]
pub fn shr_assign(&mut self, rhs: usize)
[src]
impl SquareFullInline for U256
[src]
pub fn square_full_inline(&self) -> (Self, Self)
[src]
pub fn square_full_assign_inline(&mut self) -> Self
[src]
pub fn square_full(&self) -> (Self, Self)
[src]
pub fn square_full_assign(&mut self) -> Self
[src]
impl SquareInline for U256
[src]
pub fn square_inline(&self) -> Self
[src]
pub fn square_assign_inline(&mut self)
[src]
pub fn square(&self) -> Self
[src]
pub fn square_assign(&mut self)
[src]
impl StructuralEq for U256
[src]
impl StructuralPartialEq for U256
[src]
impl<'_, '_> Sub<&'_ U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: &U256) -> U256
[src]
impl<'_> Sub<&'_ U256> for U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: &U256) -> U256
[src]
impl<'_> Sub<U256> for &'_ U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: U256) -> U256
[src]
impl Sub<U256> for U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: U256) -> U256
[src]
impl<'_> SubAssign<&'_ U256> for U256
[src]
pub fn sub_assign(&mut self, rhs: &U256)
[src]
impl SubAssign<U256> for U256
[src]
pub fn sub_assign(&mut self, rhs: U256)
[src]
impl<'_> SubFromFullInline<&'_ U256> for U256
[src]
type High = u64
pub fn sub_from_full_assign_inline(&mut self, rhs: &Self) -> Self::High
[src]
pub fn sub_from_full_assign(&mut self, rhs: Rhs) -> Self::High
[src]
impl<'_> SubFromInline<&'_ U256> for U256
[src]
pub fn sub_from_assign_inline(&mut self, rhs: &Self)
[src]
pub fn sub_from_assign(&mut self, rhs: Rhs)
[src]
impl<'_> SubFullInline<&'_ U256> for U256
[src]
type High = u64
pub fn sub_full_inline(&self, rhs: &Self) -> (Self, Self::High)
[src]
pub fn sub_full_assign_inline(&mut self, rhs: Rhs) -> Self::High
[src]
pub fn sub_full(&self, rhs: Rhs) -> (Self, Self::High)
[src]
pub fn sub_full_assign(&mut self, rhs: Rhs) -> Self::High
[src]
impl<'_> SubInline<&'_ U256> for U256
[src]
pub fn sub_inline(&self, rhs: &Self) -> Self
[src]
pub fn sub_assign_inline(&mut self, rhs: Rhs)
[src]
pub fn sub(&self, rhs: Rhs) -> Self
[src]
pub fn sub_assign(&mut self, rhs: Rhs)
[src]
impl Sum<U256> for U256
[src]
impl ToPrimitive for U256
[src]
pub fn to_u128(&self) -> Option<u128>
[src]
pub fn to_i128(&self) -> Option<i128>
[src]
pub fn to_u64(&self) -> Option<u64>
[src]
pub fn to_i64(&self) -> Option<i64>
[src]
pub fn to_isize(&self) -> Option<isize>
[src]
pub fn to_i8(&self) -> Option<i8>
[src]
pub fn to_i16(&self) -> Option<i16>
[src]
pub fn to_i32(&self) -> Option<i32>
[src]
pub fn to_usize(&self) -> Option<usize>
[src]
pub fn to_u8(&self) -> Option<u8>
[src]
pub fn to_u16(&self) -> Option<u16>
[src]
pub fn to_u32(&self) -> Option<u32>
[src]
pub fn to_f32(&self) -> Option<f32>
[src]
pub fn to_f64(&self) -> Option<f64>
[src]
impl Unsigned for U256
[src]
impl Zero for U256
[src]
Auto Trait Implementations
impl RefUnwindSafe for U256
[src]
impl Send for U256
[src]
impl Sync for U256
[src]
impl Unpin for U256
[src]
impl UnwindSafe for U256
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> NumAssign for T where
T: Num + NumAssignOps<T>,
[src]
T: Num + NumAssignOps<T>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> NumAssignRef for T where
T: NumAssign + for<'r> NumAssignOps<&'r T>,
[src]
T: NumAssign + for<'r> NumAssignOps<&'r T>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> NumRef for T where
T: Num + for<'r> NumOps<&'r T, T>,
[src]
T: Num + for<'r> NumOps<&'r T, T>,
impl<T, Base> RefNum<Base> for T where
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
[src]
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowed where
Borrowed: SampleUniform,
[src]
Borrowed: SampleUniform,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,