Struct ResultHandle

Source
pub struct ResultHandle<T: From<ResultValue>> { /* private fields */ }
Expand description

A handle to the result of the execution of an MPC computation graph

This handle acts as a pointer to a possible incomplete partial result, and await-ing it will block the task until the graph has evaluated up to that point

This allows for construction of the graph concurrently with execution, giving the fabric the opportunity to schedule all results onto the network optimistically

Implementations§

Source§

impl ResultHandle<Scalar>

Source

pub fn inverse(&self) -> ScalarResult

Compute the multiplicative inverse of the scalar in its field

Source§

impl ResultHandle<Scalar>

Source

pub fn batch_add(a: &[ScalarResult], b: &[ScalarResult]) -> Vec<ScalarResult>

Add two batches of ScalarResults

Source§

impl ResultHandle<Scalar>

Source

pub fn batch_sub(a: &[ScalarResult], b: &[ScalarResult]) -> Vec<ScalarResult>

Subtract two batches of ScalarResults

Source§

impl ResultHandle<Scalar>

Source

pub fn batch_mul(a: &[ScalarResult], b: &[ScalarResult]) -> Vec<ScalarResult>

Multiply two batches of ScalarResults

Source§

impl ResultHandle<Scalar>

Source

pub fn batch_neg(a: &[ScalarResult]) -> Vec<ScalarResult>

Negate a batch of ScalarResults

Source§

impl ResultHandle<StarkPoint>

Source

pub fn batch_add( a: &[StarkPointResult], b: &[StarkPointResult], ) -> Vec<StarkPointResult>

Add two batches of StarkPoints together

Source§

impl ResultHandle<StarkPoint>

Source

pub fn batch_sub( a: &[StarkPointResult], b: &[StarkPointResult], ) -> Vec<StarkPointResult>

Subtract two batches of StarkPoints

Source§

impl ResultHandle<StarkPoint>

Source

pub fn batch_neg(a: &[StarkPointResult]) -> Vec<StarkPointResult>

Negate a batch of StarkPoints

Source§

impl ResultHandle<StarkPoint>

Source

pub fn batch_mul( a: &[ScalarResult], b: &[StarkPointResult], ) -> Vec<StarkPointResult>

Multiply a batch of StarkPointResults with a batch of ScalarResults

Source

pub fn batch_mul_shared( a: &[MpcScalarResult], b: &[StarkPointResult], ) -> Vec<MpcStarkPointResult>

Multiply a batch of MpcScalarResults with a batch of StarkPointResults

Source

pub fn batch_mul_authenticated( a: &[AuthenticatedScalarResult], b: &[StarkPointResult], ) -> Vec<AuthenticatedStarkPointResult>

Multiply a batch of AuthenticatedScalarResults with a batch of StarkPointResults

Source§

impl ResultHandle<StarkPoint>

Source

pub fn msm_results( scalars: &[ScalarResult], points: &[StarkPointResult], ) -> StarkPointResult

Compute the multiscalar multiplication of the given scalars and points

Source

pub fn msm_results_iter<I, J>(scalars: I, points: J) -> StarkPointResult

Compute the multiscalar multiplication of the given scalars and points represented as streaming iterators

Assumes the iterator is non-empty

Source

pub fn msm_authenticated( scalars: &[AuthenticatedScalarResult], points: &[StarkPointResult], ) -> AuthenticatedStarkPointResult

Compute the multiscalar multiplication of the given AuthenticatedScalars and points

Source

pub fn msm_authenticated_iter<I, J>( scalars: I, points: J, ) -> AuthenticatedStarkPointResult

Compute the multiscalar multiplication of the given AuthenticatedScalars and points represented as streaming iterators

Source§

impl<T: From<ResultValue>> ResultHandle<T>

Source

pub fn id(&self) -> ResultId

Get the id of the result

Source

pub fn fabric(&self) -> &MpcFabric

Borrow the fabric that this result is allocated within

Source§

impl<T: From<ResultValue>> ResultHandle<T>

Source

pub fn op_ids(&self) -> Vec<ResultId>

Get the ids that this result represents, awaiting these IDs is awaiting this result

Trait Implementations§

Source§

impl Add<&ResultHandle<Scalar>> for &AuthenticatedScalarResult

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&ResultHandle<Scalar>> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&ResultHandle<Scalar>> for &ScalarResult

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<Scalar>> for &'a Scalar

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<Scalar>> for AuthenticatedScalarResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<Scalar>> for MpcScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<Scalar>> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<Scalar>> for Scalar

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&ResultHandle<StarkPoint>> for &AuthenticatedStarkPointResult

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, other: &StarkPointResult) -> AuthenticatedStarkPointResult

Performs the + operation. Read more
Source§

impl Add<&ResultHandle<StarkPoint>> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&ResultHandle<StarkPoint>> for &StarkPointResult

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for &'a StarkPoint

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for AuthenticatedStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for StarkPointResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a ResultHandle<StarkPoint>> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<Scalar>> for &'a AuthenticatedScalarResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<Scalar>> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<Scalar>> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<Scalar>> for &'a Scalar

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ResultHandle<Scalar>> for AuthenticatedScalarResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ResultHandle<Scalar>> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ResultHandle<Scalar>> for Scalar

lhs owned, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ScalarResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<StarkPoint>> for &'a AuthenticatedStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<StarkPoint>> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<StarkPoint>> for &'a StarkPointResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<ResultHandle<StarkPoint>> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ResultHandle<StarkPoint>> for AuthenticatedStarkPointResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ResultHandle<StarkPoint>> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ResultHandle<StarkPoint>> for StarkPoint

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StarkPointResult) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Clone + From<ResultValue>> Clone for ResultHandle<T>

Source§

fn clone(&self) -> ResultHandle<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + From<ResultValue>> Debug for ResultHandle<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ResultHandle<Scalar>> for MpcScalarResult

Source§

fn from(share: ScalarResult) -> Self

Converts to this type from the input type.
Source§

impl From<ResultHandle<StarkPoint>> for MpcStarkPointResult

Source§

fn from(value: StarkPointResult) -> Self

Converts to this type from the input type.
Source§

impl<T: From<ResultValue> + Debug> Future for ResultHandle<T>

Source§

type Output = T

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &AuthenticatedScalarResult

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &AuthenticatedStarkPointResult

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, other: &ScalarResult) -> AuthenticatedStarkPointResult

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &ScalarResult

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &StarkPointResult

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for &'a Scalar

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&ResultHandle<Scalar>> for &StarkPoint

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for AuthenticatedScalarResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for AuthenticatedStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for MpcScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for StarkPointResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for Scalar

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<Scalar>> for StarkPoint

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for &'a AuthenticatedScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for &'a MpcScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for &'a ScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for &'a Scalar

lhs borrowed, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for AuthenticatedScalarResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for MpcScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a ResultHandle<StarkPoint>> for Scalar

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a AuthenticatedScalarResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a AuthenticatedStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a StarkPointResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a Scalar

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<Scalar>> for &'a StarkPoint

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for AuthenticatedScalarResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for AuthenticatedStarkPointResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for StarkPointResult

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for Scalar

lhs owned, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<Scalar>> for StarkPoint

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ScalarResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<StarkPoint>> for &'a AuthenticatedScalarResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<StarkPoint>> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<StarkPoint>> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<ResultHandle<StarkPoint>> for &'a Scalar

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<StarkPoint>> for AuthenticatedScalarResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<StarkPoint>> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<StarkPoint>> for ScalarResult

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<ResultHandle<StarkPoint>> for Scalar

lhs owned, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StarkPointResult) -> Self::Output

Performs the * operation. Read more
Source§

impl Sub<&ResultHandle<Scalar>> for &AuthenticatedScalarResult

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<Scalar>> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<Scalar>> for &ScalarResult

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<Scalar>> for &Scalar

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<Scalar>> for AuthenticatedScalarResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<Scalar>> for MpcScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<Scalar>> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<Scalar>> for Scalar

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<StarkPoint>> for &AuthenticatedStarkPointResult

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, other: &StarkPointResult) -> AuthenticatedStarkPointResult

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<StarkPoint>> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<StarkPoint>> for &StarkPointResult

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&ResultHandle<StarkPoint>> for &StarkPoint

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<StarkPoint>> for AuthenticatedStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<StarkPoint>> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a ResultHandle<StarkPoint>> for StarkPointResult

lhs owned, rhs borrowed

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<Scalar>> for &'a AuthenticatedScalarResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<Scalar>> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<Scalar>> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<Scalar>> for &'a Scalar

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<ResultHandle<Scalar>> for AuthenticatedScalarResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<ResultHandle<Scalar>> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<ResultHandle<Scalar>> for Scalar

lhs owned, rhs owned

Source§

type Output = ResultHandle<Scalar>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ScalarResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<StarkPoint>> for &'a AuthenticatedStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<StarkPoint>> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<ResultHandle<StarkPoint>> for &'a StarkPointResult

lhs borrowed, rhs owned

Source§

type Output = ResultHandle<StarkPoint>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<ResultHandle<StarkPoint>> for AuthenticatedStarkPointResult

lhs owned, rhs owned

Source§

type Output = AuthenticatedStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StarkPointResult) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<ResultHandle<StarkPoint>> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StarkPointResult) -> Self::Output

Performs the - operation. Read more

Auto Trait Implementations§

§

impl<T> Freeze for ResultHandle<T>

§

impl<T> !RefUnwindSafe for ResultHandle<T>

§

impl<T> Send for ResultHandle<T>
where T: Send,

§

impl<T> Sync for ResultHandle<T>
where T: Sync,

§

impl<T> Unpin for ResultHandle<T>
where T: Unpin,

§

impl<T> !UnwindSafe for ResultHandle<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T
where T: Future + ?Sized,

Source§

fn map<U, F>(self, f: F) -> Map<Self, F>
where F: FnOnce(Self::Output) -> U, Self: Sized,

Map this future’s output to a different type, returning a new future of the resulting type. Read more
Source§

fn map_into<U>(self) -> MapInto<Self, U>
where Self::Output: Into<U>, Self: Sized,

Map this future’s output to a different type, returning a new future of the resulting type. Read more
Source§

fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
where F: FnOnce(Self::Output) -> Fut, Fut: Future, Self: Sized,

Chain on a computation for when a future finished, passing the result of the future to the provided closure f. Read more
Source§

fn left_future<B>(self) -> Either<Self, B>
where B: Future<Output = Self::Output>, Self: Sized,

Wrap this future in an Either future, making it the left-hand variant of that Either. Read more
Source§

fn right_future<A>(self) -> Either<A, Self>
where A: Future<Output = Self::Output>, Self: Sized,

Wrap this future in an Either future, making it the right-hand variant of that Either. Read more
Source§

fn into_stream(self) -> IntoStream<Self>
where Self: Sized,

Convert this future into a single element stream. Read more
Source§

fn flatten(self) -> Flatten<Self>
where Self::Output: Future, Self: Sized,

Flatten the execution of this future when the output of this future is itself another future. Read more
Source§

fn flatten_stream(self) -> FlattenStream<Self>
where Self::Output: Stream, Self: Sized,

Flatten the execution of this future when the successful result of this future is a stream. Read more
Source§

fn fuse(self) -> Fuse<Self>
where Self: Sized,

Fuse a future such that poll will never again be called once it has completed. This method can be used to turn any Future into a FusedFuture. Read more
Source§

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where F: FnOnce(&Self::Output), Self: Sized,

Do something with the output of a future before passing it on. Read more
Source§

fn catch_unwind(self) -> CatchUnwind<Self>
where Self: Sized + UnwindSafe,

Catches unwinding panics while polling the future. Read more
Source§

fn shared(self) -> Shared<Self>
where Self: Sized, Self::Output: Clone,

Create a cloneable handle to this future where all handles will resolve to the same result. Read more
Source§

fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)
where Self: Sized,

Turn this future into a future that yields () on completion and sends its output to another future on a separate task. Read more
Source§

fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
where Self: Sized + Send + 'a,

Wrap the future in a Box, pinning it. Read more
Source§

fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
where Self: Sized + 'a,

Wrap the future in a Box, pinning it. Read more
Source§

fn unit_error(self) -> UnitError<Self>
where Self: Sized,

Source§

fn never_error(self) -> NeverError<Self>
where Self: Sized,

Source§

fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output>
where Self: Unpin,

A convenience for calling Future::poll on Unpin future types.
Source§

fn now_or_never(self) -> Option<Self::Output>
where Self: Sized,

Evaluates and consumes the future, returning the resulting output if the future is ready after the first call to Future::poll. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<F> IntoFuture for F
where F: Future,

Source§

type Output = <F as Future>::Output

The output that the future will produce on completion.
Source§

type IntoFuture = F

Which kind of future are we turning this into?
Source§

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more