pub struct Scalar(/* private fields */);Expand description
A wrapper around the inner scalar that allows us to implement foreign traits for the Scalar
Implementations§
Source§impl Scalar
impl Scalar
Sourcepub type Field = Fp<MontBackend<StarknetFrConfig, 4>, 4>
pub type Field = Fp<MontBackend<StarknetFrConfig, 4>, 4>
The underlying field that the scalar wraps
Sourcepub fn inner(&self) -> Fp256<MontBackend<StarknetFrConfig, 4>>
pub fn inner(&self) -> Fp256<MontBackend<StarknetFrConfig, 4>>
Get the inner value of the scalar
Sourcepub fn random<R: RngCore + CryptoRng>(rng: &mut R) -> Scalar
pub fn random<R: RngCore + CryptoRng>(rng: &mut R) -> Scalar
Generate a random scalar
n.b. The rand::random method uses ThreadRng type which implements
the CryptoRng traits
Sourcepub fn batch_inverse(vals: &mut [Scalar])
pub fn batch_inverse(vals: &mut [Scalar])
Compute the batch inversion of a list of Scalars
Sourcepub fn from_be_bytes_mod_order(bytes: &[u8]) -> Scalar
pub fn from_be_bytes_mod_order(bytes: &[u8]) -> Scalar
Construct a scalar from the given bytes and reduce modulo the field’s modulus
Sourcepub fn to_bytes_be(&self) -> Vec<u8> ⓘ
pub fn to_bytes_be(&self) -> Vec<u8> ⓘ
Convert to big endian bytes
Pad to the maximum amount of bytes needed so that the resulting bytes are of predictable length
Sourcepub fn to_biguint(&self) -> BigUint
pub fn to_biguint(&self) -> BigUint
Convert the underlying value to a BigUint
Sourcepub fn from_biguint(val: &BigUint) -> Scalar
pub fn from_biguint(val: &BigUint) -> Scalar
Convert from a BigUint
Trait Implementations§
Source§impl<'a> Add<&'a AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Add<&'a AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
+ operator.Source§impl<'a> Add<&'a AuthenticatedScalarResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Add<&'a AuthenticatedScalarResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
+ operator.Source§impl<'a> Add<&'a MpcScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Add<&'a MpcScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
+ operator.Source§impl<'a> Add<&'a MpcScalarResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Add<&'a MpcScalarResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
+ operator.Source§impl Add<&Scalar> for &AuthenticatedScalarResult
impl Add<&Scalar> for &AuthenticatedScalarResult
Source§impl Add<&Scalar> for &MpcScalarResult
impl Add<&Scalar> for &MpcScalarResult
Source§impl Add<&Scalar> for &ScalarResult
impl Add<&Scalar> for &ScalarResult
Source§impl<'a> Add<&'a Scalar> for AuthenticatedScalarResult
lhs owned, rhs borrowed
impl<'a> Add<&'a Scalar> for AuthenticatedScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Add<&'a Scalar> for MpcScalarResult
lhs owned, rhs borrowed
impl<'a> Add<&'a Scalar> for MpcScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Add<&'a Scalar> for ScalarResult
lhs owned, rhs borrowed
impl<'a> Add<&'a Scalar> for ScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Add<AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Add<AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
+ operator.Source§impl Add<AuthenticatedScalarResult> for Scalar
lhs owned, rhs owned
impl Add<AuthenticatedScalarResult> for Scalar
lhs owned, rhs owned
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
+ operator.Source§impl<'a> Add<MpcScalarResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Add<MpcScalarResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
+ operator.Source§impl Add<MpcScalarResult> for Scalar
lhs owned, rhs owned
impl Add<MpcScalarResult> for Scalar
lhs owned, rhs owned
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
+ operator.Source§impl<'a> Add<Scalar> for &'a AuthenticatedScalarResult
lhs borrowed, rhs owned
impl<'a> Add<Scalar> for &'a AuthenticatedScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Add<Scalar> for &'a MpcScalarResult
lhs borrowed, rhs owned
impl<'a> Add<Scalar> for &'a MpcScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Add<Scalar> for &'a ScalarResult
lhs borrowed, rhs owned
impl<'a> Add<Scalar> for &'a ScalarResult
lhs borrowed, rhs owned
Source§impl Add<Scalar> for AuthenticatedScalarResult
lhs owned, rhs owned
impl Add<Scalar> for AuthenticatedScalarResult
lhs owned, rhs owned
Source§impl Add<Scalar> for MpcScalarResult
lhs owned, rhs owned
impl Add<Scalar> for MpcScalarResult
lhs owned, rhs owned
Source§impl Add<Scalar> for ScalarResult
lhs owned, rhs owned
impl Add<Scalar> for ScalarResult
lhs owned, rhs owned
Source§impl AddAssign for Scalar
impl AddAssign for Scalar
Source§fn add_assign(&mut self, rhs: Scalar)
fn add_assign(&mut self, rhs: Scalar)
+= operation. Read moreSource§impl<'de> Deserialize<'de> for Scalar
impl<'de> Deserialize<'de> for Scalar
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl From<&ResultValue> for Scalar
impl From<&ResultValue> for Scalar
Source§fn from(value: &ResultValue) -> Self
fn from(value: &ResultValue) -> Self
Source§impl From<ResultValue> for Scalar
impl From<ResultValue> for Scalar
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Source§impl From<Scalar> for NetworkPayload
impl From<Scalar> for NetworkPayload
Source§impl<T: Into<Fp256<MontBackend<StarknetFrConfig, 4>>>> From<T> for Scalar
impl<T: Into<Fp256<MontBackend<StarknetFrConfig, 4>>>> From<T> for Scalar
Source§impl<'a> Mul<&'a AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Mul<&'a AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
* operator.Source§impl<'a> Mul<&'a AuthenticatedScalarResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Mul<&'a AuthenticatedScalarResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
* operator.Source§impl<'a> Mul<&'a AuthenticatedStarkPointResult> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Mul<&'a AuthenticatedStarkPointResult> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = AuthenticatedStarkPointResult
type Output = AuthenticatedStarkPointResult
* operator.Source§impl<'a> Mul<&'a AuthenticatedStarkPointResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Mul<&'a AuthenticatedStarkPointResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = AuthenticatedStarkPointResult
type Output = AuthenticatedStarkPointResult
* operator.Source§impl<'a> Mul<&'a MpcScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Mul<&'a MpcScalarResult> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
* operator.Source§impl<'a> Mul<&'a MpcScalarResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Mul<&'a MpcScalarResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
* operator.Source§impl<'a> Mul<&'a MpcStarkPointResult> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Mul<&'a MpcStarkPointResult> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = MpcStarkPointResult
type Output = MpcStarkPointResult
* operator.Source§impl<'a> Mul<&'a MpcStarkPointResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Mul<&'a MpcStarkPointResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = MpcStarkPointResult
type Output = MpcStarkPointResult
* operator.Source§impl<'a> Mul<&'a ResultHandle<StarkPoint>> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Mul<&'a ResultHandle<StarkPoint>> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = ResultHandle<StarkPoint>
type Output = ResultHandle<StarkPoint>
* operator.Source§impl<'a> Mul<&'a ResultHandle<StarkPoint>> for Scalar
lhs owned, rhs borrowed
impl<'a> Mul<&'a ResultHandle<StarkPoint>> for Scalar
lhs owned, rhs borrowed
Source§type Output = ResultHandle<StarkPoint>
type Output = ResultHandle<StarkPoint>
* operator.Source§impl Mul<&Scalar> for &AuthenticatedScalarResult
impl Mul<&Scalar> for &AuthenticatedScalarResult
Source§impl Mul<&Scalar> for &AuthenticatedStarkPointResult
impl Mul<&Scalar> for &AuthenticatedStarkPointResult
Source§type Output = AuthenticatedStarkPointResult
type Output = AuthenticatedStarkPointResult
* operator.Source§impl Mul<&Scalar> for &MpcScalarResult
impl Mul<&Scalar> for &MpcScalarResult
Source§impl Mul<&Scalar> for &MpcStarkPointResult
impl Mul<&Scalar> for &MpcStarkPointResult
Source§impl Mul<&Scalar> for &ScalarResult
impl Mul<&Scalar> for &ScalarResult
Source§impl Mul<&Scalar> for &StarkPointResult
impl Mul<&Scalar> for &StarkPointResult
Source§impl Mul<&Scalar> for &StarkPoint
impl Mul<&Scalar> for &StarkPoint
Source§impl<'a> Mul<&'a Scalar> for AuthenticatedScalarResult
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for AuthenticatedScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a Scalar> for AuthenticatedStarkPointResult
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for AuthenticatedStarkPointResult
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a Scalar> for MpcScalarResult
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for MpcScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a Scalar> for MpcStarkPointResult
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for MpcStarkPointResult
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a Scalar> for ScalarResult
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for ScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a Scalar> for StarkPointResult
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for StarkPointResult
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a Scalar> for StarkPoint
lhs owned, rhs borrowed
impl<'a> Mul<&'a Scalar> for StarkPoint
lhs owned, rhs borrowed
Source§impl<'a> Mul<&'a StarkPoint> for &'a Scalar
lhs borrowed, rhs borrowed
impl<'a> Mul<&'a StarkPoint> for &'a Scalar
lhs borrowed, rhs borrowed
Source§type Output = StarkPoint
type Output = StarkPoint
* operator.Source§impl<'a> Mul<&'a StarkPoint> for Scalar
lhs owned, rhs borrowed
impl<'a> Mul<&'a StarkPoint> for Scalar
lhs owned, rhs borrowed
Source§type Output = StarkPoint
type Output = StarkPoint
* operator.Source§impl<'a> Mul<AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Mul<AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
* operator.Source§impl Mul<AuthenticatedScalarResult> for Scalar
lhs owned, rhs owned
impl Mul<AuthenticatedScalarResult> for Scalar
lhs owned, rhs owned
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
* operator.Source§impl<'a> Mul<AuthenticatedStarkPointResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Mul<AuthenticatedStarkPointResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = AuthenticatedStarkPointResult
type Output = AuthenticatedStarkPointResult
* operator.Source§impl Mul<AuthenticatedStarkPointResult> for Scalar
lhs owned, rhs owned
impl Mul<AuthenticatedStarkPointResult> for Scalar
lhs owned, rhs owned
Source§type Output = AuthenticatedStarkPointResult
type Output = AuthenticatedStarkPointResult
* operator.Source§impl<'a> Mul<MpcScalarResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Mul<MpcScalarResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
* operator.Source§impl Mul<MpcScalarResult> for Scalar
lhs owned, rhs owned
impl Mul<MpcScalarResult> for Scalar
lhs owned, rhs owned
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
* operator.Source§impl<'a> Mul<MpcStarkPointResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Mul<MpcStarkPointResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = MpcStarkPointResult
type Output = MpcStarkPointResult
* operator.Source§impl Mul<MpcStarkPointResult> for Scalar
lhs owned, rhs owned
impl Mul<MpcStarkPointResult> for Scalar
lhs owned, rhs owned
Source§type Output = MpcStarkPointResult
type Output = MpcStarkPointResult
* operator.Source§impl<'a> Mul<ResultHandle<StarkPoint>> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Mul<ResultHandle<StarkPoint>> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = ResultHandle<StarkPoint>
type Output = ResultHandle<StarkPoint>
* operator.Source§impl Mul<ResultHandle<StarkPoint>> for Scalar
lhs owned, rhs owned
impl Mul<ResultHandle<StarkPoint>> for Scalar
lhs owned, rhs owned
Source§type Output = ResultHandle<StarkPoint>
type Output = ResultHandle<StarkPoint>
* operator.Source§impl<'a> Mul<Scalar> for &'a AuthenticatedScalarResult
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a AuthenticatedScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Mul<Scalar> for &'a AuthenticatedStarkPointResult
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a AuthenticatedStarkPointResult
lhs borrowed, rhs owned
Source§impl<'a> Mul<Scalar> for &'a MpcScalarResult
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a MpcScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Mul<Scalar> for &'a MpcStarkPointResult
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a MpcStarkPointResult
lhs borrowed, rhs owned
Source§impl<'a> Mul<Scalar> for &'a ScalarResult
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a ScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Mul<Scalar> for &'a StarkPointResult
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a StarkPointResult
lhs borrowed, rhs owned
Source§impl<'a> Mul<Scalar> for &'a StarkPoint
lhs borrowed, rhs owned
impl<'a> Mul<Scalar> for &'a StarkPoint
lhs borrowed, rhs owned
Source§impl Mul<Scalar> for AuthenticatedScalarResult
lhs owned, rhs owned
impl Mul<Scalar> for AuthenticatedScalarResult
lhs owned, rhs owned
Source§impl Mul<Scalar> for AuthenticatedStarkPointResult
lhs owned, rhs owned
impl Mul<Scalar> for AuthenticatedStarkPointResult
lhs owned, rhs owned
Source§impl Mul<Scalar> for MpcScalarResult
lhs owned, rhs owned
impl Mul<Scalar> for MpcScalarResult
lhs owned, rhs owned
Source§impl Mul<Scalar> for MpcStarkPointResult
lhs owned, rhs owned
impl Mul<Scalar> for MpcStarkPointResult
lhs owned, rhs owned
Source§impl Mul<Scalar> for ScalarResult
lhs owned, rhs owned
impl Mul<Scalar> for ScalarResult
lhs owned, rhs owned
Source§impl Mul<Scalar> for StarkPointResult
lhs owned, rhs owned
impl Mul<Scalar> for StarkPointResult
lhs owned, rhs owned
Source§impl Mul<Scalar> for StarkPoint
lhs owned, rhs owned
impl Mul<Scalar> for StarkPoint
lhs owned, rhs owned
Source§impl<'a> Mul<StarkPoint> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Mul<StarkPoint> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = StarkPoint
type Output = StarkPoint
* operator.Source§impl Mul<StarkPoint> for Scalar
lhs owned, rhs owned
impl Mul<StarkPoint> for Scalar
lhs owned, rhs owned
Source§type Output = StarkPoint
type Output = StarkPoint
* operator.Source§impl MulAssign<&Scalar> for StarkPoint
impl MulAssign<&Scalar> for StarkPoint
Source§fn mul_assign(&mut self, rhs: &Scalar)
fn mul_assign(&mut self, rhs: &Scalar)
*= operation. Read moreSource§impl MulAssign for Scalar
impl MulAssign for Scalar
Source§fn mul_assign(&mut self, rhs: Scalar)
fn mul_assign(&mut self, rhs: Scalar)
*= operation. Read moreSource§impl Sub<&AuthenticatedScalarResult> for &Scalar
impl Sub<&AuthenticatedScalarResult> for &Scalar
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
- operator.Source§impl<'a> Sub<&'a AuthenticatedScalarResult> for Scalar
lhs owned, rhs borrowed
impl<'a> Sub<&'a AuthenticatedScalarResult> for Scalar
lhs owned, rhs borrowed
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
- operator.Source§impl Sub<&MpcScalarResult> for &Scalar
impl Sub<&MpcScalarResult> for &Scalar
Source§type Output = MpcScalarResult
type Output = MpcScalarResult
- operator.Source§impl Sub<&Scalar> for &AuthenticatedScalarResult
impl Sub<&Scalar> for &AuthenticatedScalarResult
Source§impl Sub<&Scalar> for &MpcScalarResult
impl Sub<&Scalar> for &MpcScalarResult
Source§impl Sub<&Scalar> for &ScalarResult
impl Sub<&Scalar> for &ScalarResult
Source§impl<'a> Sub<&'a Scalar> for AuthenticatedScalarResult
lhs owned, rhs borrowed
impl<'a> Sub<&'a Scalar> for AuthenticatedScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Sub<&'a Scalar> for MpcScalarResult
lhs owned, rhs borrowed
impl<'a> Sub<&'a Scalar> for MpcScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Sub<&'a Scalar> for ScalarResult
lhs owned, rhs borrowed
impl<'a> Sub<&'a Scalar> for ScalarResult
lhs owned, rhs borrowed
Source§impl<'a> Sub<AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs owned
impl<'a> Sub<AuthenticatedScalarResult> for &'a Scalar
lhs borrowed, rhs owned
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
- operator.Source§impl Sub<AuthenticatedScalarResult> for Scalar
lhs owned, rhs owned
impl Sub<AuthenticatedScalarResult> for Scalar
lhs owned, rhs owned
Source§type Output = AuthenticatedScalarResult
type Output = AuthenticatedScalarResult
- operator.Source§impl<'a> Sub<Scalar> for &'a AuthenticatedScalarResult
lhs borrowed, rhs owned
impl<'a> Sub<Scalar> for &'a AuthenticatedScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Sub<Scalar> for &'a MpcScalarResult
lhs borrowed, rhs owned
impl<'a> Sub<Scalar> for &'a MpcScalarResult
lhs borrowed, rhs owned
Source§impl<'a> Sub<Scalar> for &'a ScalarResult
lhs borrowed, rhs owned
impl<'a> Sub<Scalar> for &'a ScalarResult
lhs borrowed, rhs owned
Source§impl Sub<Scalar> for AuthenticatedScalarResult
lhs owned, rhs owned
impl Sub<Scalar> for AuthenticatedScalarResult
lhs owned, rhs owned
Source§impl Sub<Scalar> for MpcScalarResult
lhs owned, rhs owned
impl Sub<Scalar> for MpcScalarResult
lhs owned, rhs owned
Source§impl Sub<Scalar> for ScalarResult
lhs owned, rhs owned
impl Sub<Scalar> for ScalarResult
lhs owned, rhs owned
Source§impl SubAssign for Scalar
impl SubAssign for Scalar
Source§fn sub_assign(&mut self, rhs: Scalar)
fn sub_assign(&mut self, rhs: Scalar)
-= operation. Read moreimpl Copy for Scalar
impl Eq for Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnwindSafe for Scalar
Blanket Implementations§
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more