Struct MpcScalarResult

Source
pub struct MpcScalarResult { /* private fields */ }
Expand description

Defines a secret shared type over the Scalar field

Implementations§

Source§

impl MpcScalarResult

Defines the result handle type that represents a future result of an MpcScalarResult

Source

pub fn new_shared(value: ScalarResult) -> MpcScalarResult

Creates an MPC scalar from a given underlying scalar assumed to be a secret share

Source

pub fn id(&self) -> usize

Get the op-id of the underlying share

Source

pub fn fabric(&self) -> &MpcFabric

Borrow the fabric that the result is allocated in

Source

pub fn open(&self) -> ResultHandle<Scalar>

Open the value; both parties send their shares to the counterparty

Source

pub fn open_batch(values: &[MpcScalarResult]) -> Vec<ScalarResult>

Open a batch of values

Source

pub fn to_scalar(&self) -> ScalarResult

Convert the underlying value to a Scalar

Source§

impl MpcScalarResult

Source

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

Add two batches of MpcScalarResults using a single batched gate

Source

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

Add a batch of MpcScalarResults to a batch of public ScalarResults

Source§

impl MpcScalarResult

Source

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

Subtract two batches of MpcScalarResults using a single batched gate

Source

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

Subtract a batch of MpcScalarResults from a batch of public ScalarResults

Source§

impl MpcScalarResult

Source

pub fn batch_neg(values: &[MpcScalarResult]) -> Vec<MpcScalarResult>

Negate a batch of MpcScalarResults using a single batched gate

Source§

impl MpcScalarResult

Source

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

Multiply a batch of MpcScalarResults over a single network op

Source

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

Multiply a batch of MpcScalarResults by a batch of public ScalarResults

Trait Implementations§

Source§

impl Add<&MpcScalarResult> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a MpcScalarResult> for &'a ScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs borrowed, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<&'a MpcScalarResult> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcScalarResult) -> 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<'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 Add<&Scalar> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<MpcScalarResult> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<MpcScalarResult> for ScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<MpcScalarResult> for Scalar

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcScalarResult) -> 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 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<'a> Add<Scalar> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Scalar> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Clone for MpcScalarResult

Source§

fn clone(&self) -> MpcScalarResult

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 Debug for MpcScalarResult

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 Mul<&MpcScalarResult> for &MpcScalarResult

Use the beaver trick if both values are shared

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&MpcScalarResult> for &MpcStarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a MpcScalarResult> for &'a ScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&MpcScalarResult> for &StarkPointResult

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&MpcScalarResult> for &StarkPoint

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a MpcScalarResult> for MpcStarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a MpcScalarResult> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a MpcScalarResult> for StarkPointResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a MpcStarkPointResult> for &'a MpcScalarResult

lhs borrowed, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a MpcStarkPointResult> for MpcScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

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<'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<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 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 Mul<&Scalar> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a 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 StarkPoint) -> Self::Output

Performs the * operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<MpcScalarResult> for &'a MpcStarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<MpcScalarResult> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<MpcScalarResult> for &'a StarkPointResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcScalarResult> for MpcStarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcScalarResult> for ScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcScalarResult> for StarkPointResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcScalarResult> for Scalar

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<MpcStarkPointResult> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<MpcStarkPointResult> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcStarkPointResult) -> 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 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<'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 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<'a> Mul<Scalar> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Scalar> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<StarkPoint> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcStarkPointResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Neg for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Sub<&MpcScalarResult> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&MpcScalarResult> for &ScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&MpcScalarResult> for &Scalar

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a MpcScalarResult> for ScalarResult

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a MpcScalarResult) -> 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<'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 Sub<&Scalar> for &MpcScalarResult

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

lhs owned, rhs borrowed

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<MpcScalarResult> for &'a ScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<MpcScalarResult> for ScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: MpcScalarResult) -> 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 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<'a> Sub<Scalar> for &'a MpcScalarResult

lhs borrowed, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Scalar> for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for MpcScalarResult

lhs owned, rhs owned

Source§

type Output = MpcScalarResult

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more

Auto Trait Implementations§

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> 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<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