pub struct WrappedScalar(pub Scalar);Expand description
Wraps a curve25519 scalar
Tuple Fields§
§0: ScalarTrait Implementations§
Source§impl<'a, 'b> Add<&'b WrappedScalar> for &'a WrappedScalar
impl<'a, 'b> Add<&'b WrappedScalar> for &'a WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: &'b WrappedScalar,
) -> <&'a WrappedScalar as Add<&'b WrappedScalar>>::Output
fn add( self, rhs: &'b WrappedScalar, ) -> <&'a WrappedScalar as Add<&'b WrappedScalar>>::Output
Performs the
+ operation. Read moreSource§impl<'b> Add<&'b WrappedScalar> for WrappedScalar
impl<'b> Add<&'b WrappedScalar> for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: &'b WrappedScalar,
) -> <WrappedScalar as Add<&'b WrappedScalar>>::Output
fn add( self, rhs: &'b WrappedScalar, ) -> <WrappedScalar as Add<&'b WrappedScalar>>::Output
Performs the
+ operation. Read moreSource§impl<'a> Add<WrappedScalar> for &'a WrappedScalar
impl<'a> Add<WrappedScalar> for &'a WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: WrappedScalar,
) -> <&'a WrappedScalar as Add<WrappedScalar>>::Output
fn add( self, rhs: WrappedScalar, ) -> <&'a WrappedScalar as Add<WrappedScalar>>::Output
Performs the
+ operation. Read moreSource§impl Add for WrappedScalar
impl Add for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
+ operator.Source§fn add(self, rhs: WrappedScalar) -> <WrappedScalar as Add>::Output
fn add(self, rhs: WrappedScalar) -> <WrappedScalar as Add>::Output
Performs the
+ operation. Read moreSource§impl<'b> AddAssign<&'b WrappedScalar> for WrappedScalar
impl<'b> AddAssign<&'b WrappedScalar> for WrappedScalar
Source§fn add_assign(&mut self, rhs: &'b WrappedScalar)
fn add_assign(&mut self, rhs: &'b WrappedScalar)
Performs the
+= operation. Read moreSource§impl AddAssign for WrappedScalar
impl AddAssign for WrappedScalar
Source§fn add_assign(&mut self, rhs: WrappedScalar)
fn add_assign(&mut self, rhs: WrappedScalar)
Performs the
+= operation. Read moreSource§impl Clone for WrappedScalar
impl Clone for WrappedScalar
Source§fn clone(&self) -> WrappedScalar
fn clone(&self) -> WrappedScalar
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConditionallySelectable for WrappedScalar
impl ConditionallySelectable for WrappedScalar
Source§fn conditional_select(
a: &WrappedScalar,
b: &WrappedScalar,
choice: Choice,
) -> WrappedScalar
fn conditional_select( a: &WrappedScalar, b: &WrappedScalar, choice: Choice, ) -> WrappedScalar
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl ConstantTimeEq for WrappedScalar
impl ConstantTimeEq for WrappedScalar
Source§impl Debug for WrappedScalar
impl Debug for WrappedScalar
Source§impl Default for WrappedScalar
impl Default for WrappedScalar
Source§fn default() -> WrappedScalar
fn default() -> WrappedScalar
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WrappedScalar
Available on crate feature serde only.
impl<'de> Deserialize<'de> for WrappedScalar
Available on crate feature
serde only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<WrappedScalar, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<WrappedScalar, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Field for WrappedScalar
impl Field for WrappedScalar
Source§const ZERO: WrappedScalar
const ZERO: WrappedScalar
The zero element of the field, the additive identity.
Source§const ONE: WrappedScalar
const ONE: WrappedScalar
The one element of the field, the multiplicative identity.
Source§fn random(rng: impl RngCore) -> WrappedScalar
fn random(rng: impl RngCore) -> WrappedScalar
Returns an element chosen uniformly at random using a user-provided RNG.
Source§fn square(&self) -> WrappedScalar
fn square(&self) -> WrappedScalar
Squares this element.
Source§fn double(&self) -> WrappedScalar
fn double(&self) -> WrappedScalar
Doubles this element.
Source§fn invert(&self) -> CtOption<WrappedScalar>
fn invert(&self) -> CtOption<WrappedScalar>
Computes the multiplicative inverse of this element,
failing if the element is zero.
Source§fn sqrt_ratio(
num: &WrappedScalar,
div: &WrappedScalar,
) -> (Choice, WrappedScalar)
fn sqrt_ratio( num: &WrappedScalar, div: &WrappedScalar, ) -> (Choice, WrappedScalar)
Computes: Read more
Source§fn is_zero_vartime(&self) -> bool
fn is_zero_vartime(&self) -> bool
Returns true iff this element is zero. Read more
Source§fn sqrt(&self) -> CtOption<Self>
fn sqrt(&self) -> CtOption<Self>
Returns the square root of the field element, if it is
quadratic residue. Read more
Source§impl From<Scalar> for WrappedScalar
impl From<Scalar> for WrappedScalar
Source§fn from(s: Scalar) -> WrappedScalar
fn from(s: Scalar) -> WrappedScalar
Converts to this type from the input type.
Source§impl From<u64> for WrappedScalar
impl From<u64> for WrappedScalar
Source§fn from(d: u64) -> WrappedScalar
fn from(d: u64) -> WrappedScalar
Converts to this type from the input type.
Source§impl FromUintUnchecked for WrappedScalar
Available on crate feature bigint only.
impl FromUintUnchecked for WrappedScalar
Available on crate feature
bigint only.Source§type Uint = Uint<crypto_bigint::::uint::U256::{constant#0}>
type Uint = Uint<crypto_bigint::::uint::U256::{constant#0}>
Unsigned integer type (i.e.
Curve::Uint)Source§fn from_uint_unchecked(
n: Uint<crypto_bigint::::uint::U256::{constant#0}>,
) -> WrappedScalar
fn from_uint_unchecked( n: Uint<crypto_bigint::::uint::U256::{constant#0}>, ) -> WrappedScalar
Instantiate scalar from an unsigned integer without checking
whether the value overflows the field modulus. Read more
Source§impl FromUniformBytes<64> for WrappedScalar
impl FromUniformBytes<64> for WrappedScalar
Source§fn from_uniform_bytes(bytes: &[u8; 64]) -> WrappedScalar
fn from_uniform_bytes(bytes: &[u8; 64]) -> WrappedScalar
Returns a field element that is congruent to the provided little endian unsigned
byte representation of an integer.
Source§impl Invert for WrappedScalar
impl Invert for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
Field element type
Source§fn invert(&self) -> WrappedScalar
fn invert(&self) -> WrappedScalar
Invert a field element.
Source§fn invert_vartime(&self) -> Self::Output
fn invert_vartime(&self) -> Self::Output
Invert a field element in variable time. Read more
Source§impl LowerHex for WrappedScalar
impl LowerHex for WrappedScalar
Source§impl<'a, 'b> Mul<&'b WrappedScalar> for &'a WrappedEdwards
impl<'a, 'b> Mul<&'b WrappedScalar> for &'a WrappedEdwards
Source§type Output = WrappedEdwards
type Output = WrappedEdwards
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: &'b WrappedScalar,
) -> <&'a WrappedEdwards as Mul<&'b WrappedScalar>>::Output
fn mul( self, rhs: &'b WrappedScalar, ) -> <&'a WrappedEdwards as Mul<&'b WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'a, 'b> Mul<&'b WrappedScalar> for &'a WrappedRistretto
impl<'a, 'b> Mul<&'b WrappedScalar> for &'a WrappedRistretto
Source§type Output = WrappedRistretto
type Output = WrappedRistretto
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: &'b WrappedScalar,
) -> <&'a WrappedRistretto as Mul<&'b WrappedScalar>>::Output
fn mul( self, rhs: &'b WrappedScalar, ) -> <&'a WrappedRistretto as Mul<&'b WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'a, 'b> Mul<&'b WrappedScalar> for &'a WrappedScalar
impl<'a, 'b> Mul<&'b WrappedScalar> for &'a WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: &'b WrappedScalar,
) -> <&'a WrappedScalar as Mul<&'b WrappedScalar>>::Output
fn mul( self, rhs: &'b WrappedScalar, ) -> <&'a WrappedScalar as Mul<&'b WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'b> Mul<&'b WrappedScalar> for WrappedEdwards
impl<'b> Mul<&'b WrappedScalar> for WrappedEdwards
Source§type Output = WrappedEdwards
type Output = WrappedEdwards
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: &'b WrappedScalar,
) -> <WrappedEdwards as Mul<&'b WrappedScalar>>::Output
fn mul( self, rhs: &'b WrappedScalar, ) -> <WrappedEdwards as Mul<&'b WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'b> Mul<&'b WrappedScalar> for WrappedRistretto
impl<'b> Mul<&'b WrappedScalar> for WrappedRistretto
Source§type Output = WrappedRistretto
type Output = WrappedRistretto
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: &'b WrappedScalar,
) -> <WrappedRistretto as Mul<&'b WrappedScalar>>::Output
fn mul( self, rhs: &'b WrappedScalar, ) -> <WrappedRistretto as Mul<&'b WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'b> Mul<&'b WrappedScalar> for WrappedScalar
impl<'b> Mul<&'b WrappedScalar> for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: &'b WrappedScalar,
) -> <WrappedScalar as Mul<&'b WrappedScalar>>::Output
fn mul( self, rhs: &'b WrappedScalar, ) -> <WrappedScalar as Mul<&'b WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'a> Mul<WrappedScalar> for &'a WrappedEdwards
impl<'a> Mul<WrappedScalar> for &'a WrappedEdwards
Source§type Output = WrappedEdwards
type Output = WrappedEdwards
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: WrappedScalar,
) -> <&'a WrappedEdwards as Mul<WrappedScalar>>::Output
fn mul( self, rhs: WrappedScalar, ) -> <&'a WrappedEdwards as Mul<WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'a> Mul<WrappedScalar> for &'a WrappedRistretto
impl<'a> Mul<WrappedScalar> for &'a WrappedRistretto
Source§type Output = WrappedRistretto
type Output = WrappedRistretto
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: WrappedScalar,
) -> <&'a WrappedRistretto as Mul<WrappedScalar>>::Output
fn mul( self, rhs: WrappedScalar, ) -> <&'a WrappedRistretto as Mul<WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl<'a> Mul<WrappedScalar> for &'a WrappedScalar
impl<'a> Mul<WrappedScalar> for &'a WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: WrappedScalar,
) -> <&'a WrappedScalar as Mul<WrappedScalar>>::Output
fn mul( self, rhs: WrappedScalar, ) -> <&'a WrappedScalar as Mul<WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl Mul<WrappedScalar> for WrappedEdwards
impl Mul<WrappedScalar> for WrappedEdwards
Source§type Output = WrappedEdwards
type Output = WrappedEdwards
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: WrappedScalar,
) -> <WrappedEdwards as Mul<WrappedScalar>>::Output
fn mul( self, rhs: WrappedScalar, ) -> <WrappedEdwards as Mul<WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl Mul<WrappedScalar> for WrappedRistretto
impl Mul<WrappedScalar> for WrappedRistretto
Source§type Output = WrappedRistretto
type Output = WrappedRistretto
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: WrappedScalar,
) -> <WrappedRistretto as Mul<WrappedScalar>>::Output
fn mul( self, rhs: WrappedScalar, ) -> <WrappedRistretto as Mul<WrappedScalar>>::Output
Performs the
* operation. Read moreSource§impl Mul for WrappedScalar
impl Mul for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
* operator.Source§fn mul(self, rhs: WrappedScalar) -> <WrappedScalar as Mul>::Output
fn mul(self, rhs: WrappedScalar) -> <WrappedScalar as Mul>::Output
Performs the
* operation. Read moreSource§impl<'b> MulAssign<&'b WrappedScalar> for WrappedEdwards
impl<'b> MulAssign<&'b WrappedScalar> for WrappedEdwards
Source§fn mul_assign(&mut self, rhs: &'b WrappedScalar)
fn mul_assign(&mut self, rhs: &'b WrappedScalar)
Performs the
*= operation. Read moreSource§impl<'b> MulAssign<&'b WrappedScalar> for WrappedRistretto
impl<'b> MulAssign<&'b WrappedScalar> for WrappedRistretto
Source§fn mul_assign(&mut self, rhs: &'b WrappedScalar)
fn mul_assign(&mut self, rhs: &'b WrappedScalar)
Performs the
*= operation. Read moreSource§impl<'b> MulAssign<&'b WrappedScalar> for WrappedScalar
impl<'b> MulAssign<&'b WrappedScalar> for WrappedScalar
Source§fn mul_assign(&mut self, rhs: &'b WrappedScalar)
fn mul_assign(&mut self, rhs: &'b WrappedScalar)
Performs the
*= operation. Read moreSource§impl MulAssign<WrappedScalar> for WrappedEdwards
impl MulAssign<WrappedScalar> for WrappedEdwards
Source§fn mul_assign(&mut self, rhs: WrappedScalar)
fn mul_assign(&mut self, rhs: WrappedScalar)
Performs the
*= operation. Read moreSource§impl MulAssign<WrappedScalar> for WrappedRistretto
impl MulAssign<WrappedScalar> for WrappedRistretto
Source§fn mul_assign(&mut self, rhs: WrappedScalar)
fn mul_assign(&mut self, rhs: WrappedScalar)
Performs the
*= operation. Read moreSource§impl MulAssign for WrappedScalar
impl MulAssign for WrappedScalar
Source§fn mul_assign(&mut self, rhs: WrappedScalar)
fn mul_assign(&mut self, rhs: WrappedScalar)
Performs the
*= operation. Read moreSource§impl<'a> Neg for &'a WrappedScalar
impl<'a> Neg for &'a WrappedScalar
Source§impl Neg for WrappedScalar
impl Neg for WrappedScalar
Source§impl PartialEq for WrappedScalar
impl PartialEq for WrappedScalar
Source§impl PrimeField for WrappedScalar
impl PrimeField for WrappedScalar
Source§const MODULUS: &'static str = <Scalar as PrimeField>::MODULUS
const MODULUS: &'static str = <Scalar as PrimeField>::MODULUS
Modulus of the field written as a string for debugging purposes. Read more
Source§const CAPACITY: u32 = 252u32
const CAPACITY: u32 = 252u32
How many bits of information can be reliably stored in the field element. Read more
Source§const TWO_INV: WrappedScalar
const TWO_INV: WrappedScalar
Inverse of $2$ in the field.
Source§const MULTIPLICATIVE_GENERATOR: WrappedScalar
const MULTIPLICATIVE_GENERATOR: WrappedScalar
A fixed multiplicative generator of
modulus - 1 order. This element must also be
a quadratic nonresidue. Read moreSource§const ROOT_OF_UNITY: WrappedScalar
const ROOT_OF_UNITY: WrappedScalar
The
2^s root of unity. Read moreSource§const ROOT_OF_UNITY_INV: WrappedScalar
const ROOT_OF_UNITY_INV: WrappedScalar
Inverse of
Self::ROOT_OF_UNITY.Source§const DELTA: WrappedScalar
const DELTA: WrappedScalar
Generator of the
t-order multiplicative subgroup. Read moreSource§type Repr = <Scalar as PrimeField>::Repr
type Repr = <Scalar as PrimeField>::Repr
The prime field can be converted back and forth into this binary
representation.
Source§fn from_repr(
bytes: <WrappedScalar as PrimeField>::Repr,
) -> CtOption<WrappedScalar>
fn from_repr( bytes: <WrappedScalar as PrimeField>::Repr, ) -> CtOption<WrappedScalar>
Attempts to convert a byte representation of a field element into an element of
this prime field, failing if the input is not canonical (is not smaller than the
field’s modulus). Read more
Source§fn to_repr(&self) -> <WrappedScalar as PrimeField>::Repr
fn to_repr(&self) -> <WrappedScalar as PrimeField>::Repr
Converts an element of the prime field into the standard byte representation for
this field. Read more
Source§fn from_str_vartime(s: &str) -> Option<Self>
fn from_str_vartime(s: &str) -> Option<Self>
Interpret a string of numbers as a (congruent) prime field element.
Does not accept unnecessary leading zeroes or a blank string. Read more
Source§impl PrimeFieldBits for WrappedScalar
impl PrimeFieldBits for WrappedScalar
Source§fn to_le_bits(&self) -> BitArray<<WrappedScalar as PrimeFieldBits>::ReprBits>
fn to_le_bits(&self) -> BitArray<<WrappedScalar as PrimeFieldBits>::ReprBits>
Converts an element of the prime field into a little-endian sequence of bits.
Source§fn char_le_bits() -> BitArray<<WrappedScalar as PrimeFieldBits>::ReprBits>
fn char_le_bits() -> BitArray<<WrappedScalar as PrimeFieldBits>::ReprBits>
Returns the bits of the field characteristic (the modulus) in little-endian order.
Source§impl<'a> Product<&'a WrappedScalar> for WrappedScalar
impl<'a> Product<&'a WrappedScalar> for WrappedScalar
Source§fn product<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = &'a WrappedScalar>,
fn product<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = &'a WrappedScalar>,
Takes an iterator and generates
Self from the elements by multiplying
the items.Source§impl Product for WrappedScalar
impl Product for WrappedScalar
Source§fn product<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = WrappedScalar>,
fn product<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = WrappedScalar>,
Takes an iterator and generates
Self from the elements by multiplying
the items.Source§impl Reduce<Uint<crypto_bigint::::uint::U256::{constant#0}>> for WrappedScalar
Available on crate feature bigint only.
impl Reduce<Uint<crypto_bigint::::uint::U256::{constant#0}>> for WrappedScalar
Available on crate feature
bigint only.Source§fn reduce(n: Uint<crypto_bigint::::uint::U256::{constant#0}>) -> WrappedScalar
fn reduce(n: Uint<crypto_bigint::::uint::U256::{constant#0}>) -> WrappedScalar
Perform a modular reduction, returning a field element.
Source§fn reduce_bytes(
bytes: &<WrappedScalar as Reduce<Uint<crypto_bigint::::uint::U256::{constant#0}>>>::Bytes,
) -> WrappedScalar
fn reduce_bytes( bytes: &<WrappedScalar as Reduce<Uint<crypto_bigint::::uint::U256::{constant#0}>>>::Bytes, ) -> WrappedScalar
Interpret the given bytes as an integer and perform a modular reduction.
Source§impl Reduce<Uint<crypto_bigint::::uint::U512::{constant#0}>> for WrappedScalar
Available on crate feature bigint only.
impl Reduce<Uint<crypto_bigint::::uint::U512::{constant#0}>> for WrappedScalar
Available on crate feature
bigint only.Source§fn reduce(n: Uint<crypto_bigint::::uint::U512::{constant#0}>) -> WrappedScalar
fn reduce(n: Uint<crypto_bigint::::uint::U512::{constant#0}>) -> WrappedScalar
Perform a modular reduction, returning a field element.
Source§fn reduce_bytes(
bytes: &<WrappedScalar as Reduce<Uint<crypto_bigint::::uint::U512::{constant#0}>>>::Bytes,
) -> WrappedScalar
fn reduce_bytes( bytes: &<WrappedScalar as Reduce<Uint<crypto_bigint::::uint::U512::{constant#0}>>>::Bytes, ) -> WrappedScalar
Interpret the given bytes as an integer and perform a modular reduction.
Source§impl Serialize for WrappedScalar
Available on crate feature serde only.
impl Serialize for WrappedScalar
Available on crate feature
serde only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'a, 'b> Sub<&'b WrappedScalar> for &'a WrappedScalar
impl<'a, 'b> Sub<&'b WrappedScalar> for &'a WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: &'b WrappedScalar,
) -> <&'a WrappedScalar as Sub<&'b WrappedScalar>>::Output
fn sub( self, rhs: &'b WrappedScalar, ) -> <&'a WrappedScalar as Sub<&'b WrappedScalar>>::Output
Performs the
- operation. Read moreSource§impl<'b> Sub<&'b WrappedScalar> for WrappedScalar
impl<'b> Sub<&'b WrappedScalar> for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: &'b WrappedScalar,
) -> <WrappedScalar as Sub<&'b WrappedScalar>>::Output
fn sub( self, rhs: &'b WrappedScalar, ) -> <WrappedScalar as Sub<&'b WrappedScalar>>::Output
Performs the
- operation. Read moreSource§impl<'a> Sub<WrappedScalar> for &'a WrappedScalar
impl<'a> Sub<WrappedScalar> for &'a WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: WrappedScalar,
) -> <&'a WrappedScalar as Sub<WrappedScalar>>::Output
fn sub( self, rhs: WrappedScalar, ) -> <&'a WrappedScalar as Sub<WrappedScalar>>::Output
Performs the
- operation. Read moreSource§impl Sub for WrappedScalar
impl Sub for WrappedScalar
Source§type Output = WrappedScalar
type Output = WrappedScalar
The resulting type after applying the
- operator.Source§fn sub(self, rhs: WrappedScalar) -> <WrappedScalar as Sub>::Output
fn sub(self, rhs: WrappedScalar) -> <WrappedScalar as Sub>::Output
Performs the
- operation. Read moreSource§impl<'b> SubAssign<&'b WrappedScalar> for WrappedScalar
impl<'b> SubAssign<&'b WrappedScalar> for WrappedScalar
Source§fn sub_assign(&mut self, rhs: &'b WrappedScalar)
fn sub_assign(&mut self, rhs: &'b WrappedScalar)
Performs the
-= operation. Read moreSource§impl SubAssign for WrappedScalar
impl SubAssign for WrappedScalar
Source§fn sub_assign(&mut self, rhs: WrappedScalar)
fn sub_assign(&mut self, rhs: WrappedScalar)
Performs the
-= operation. Read moreSource§impl<'a> Sum<&'a WrappedScalar> for WrappedScalar
impl<'a> Sum<&'a WrappedScalar> for WrappedScalar
Source§fn sum<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = &'a WrappedScalar>,
fn sum<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = &'a WrappedScalar>,
Takes an iterator and generates
Self from the elements by “summing up”
the items.Source§impl Sum for WrappedScalar
impl Sum for WrappedScalar
Source§fn sum<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = WrappedScalar>,
fn sum<I>(iter: I) -> WrappedScalarwhere
I: Iterator<Item = WrappedScalar>,
Takes an iterator and generates
Self from the elements by “summing up”
the items.Source§impl UpperHex for WrappedScalar
impl UpperHex for WrappedScalar
impl Copy for WrappedScalar
impl DefaultIsZeroes for WrappedScalar
Available on crate feature
zeroize only.impl Eq for WrappedScalar
Auto Trait Implementations§
impl Freeze for WrappedScalar
impl RefUnwindSafe for WrappedScalar
impl Send for WrappedScalar
impl Sync for WrappedScalar
impl Unpin for WrappedScalar
impl UnwindSafe for WrappedScalar
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> ConditionallyNegatable for T
impl<T> ConditionallyNegatable for T
Source§fn conditional_negate(&mut self, choice: Choice)
fn conditional_negate(&mut self, choice: Choice)
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.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>
Converts
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>
Converts
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<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.