Struct MpcPointResult

Source
pub struct MpcPointResult<C: CurveGroup> { /* private fields */ }
Expand description

Defines a secret shared type of a curve point

Implementations§

Source§

impl<C: CurveGroup> MpcPointResult<C>

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

Source

pub fn new_shared(value: CurvePointResult<C>) -> MpcPointResult<C>

Creates an MpcPoint from a given underlying point assumed to be a secret share

Source

pub fn id(&self) -> ResultId

Get the ID of the underlying share’s result

Source

pub fn fabric(&self) -> &MpcFabric<C>

Borrow the fabric that this result is allocated in

Source

pub fn open(&self) -> CurvePointResult<C>

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

Source

pub fn open_batch(values: &[MpcPointResult<C>]) -> Vec<CurvePointResult<C>>

Open a batch of values

Source§

impl<C: CurveGroup> MpcPointResult<C>

Source

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

Add two batches of values

Source

pub fn batch_add_public( a: &[MpcPointResult<C>], b: &[CurvePointResult<C>], ) -> Vec<MpcPointResult<C>>

Add a batch of MpcPointResults to a batch of CurvePointResults

Source§

impl<C: CurveGroup> MpcPointResult<C>

Source

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

Subtract two batches of values

Source

pub fn batch_sub_public( a: &[MpcPointResult<C>], b: &[CurvePointResult<C>], ) -> Vec<MpcPointResult<C>>

Subtract a batch of MpcPointResults to a batch of CurvePointResults

Source§

impl<C: CurveGroup> MpcPointResult<C>

Source

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

Negate a batch of values

Source§

impl<C: CurveGroup> MpcPointResult<C>

Source

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

Multiply a batch of MpcPointResults with a batch of MpcScalarResults

Source

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

Multiply a batch of MpcPointResults with a batch of ScalarResults

Source

pub fn batch_mul_generator(a: &[MpcScalarResult<C>]) -> Vec<MpcPointResult<C>>

Multiply a batch of MpcScalarResults by the generator

Trait Implementations§

Source§

impl<C: CurveGroup> Add<&CurvePoint<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&MpcPointResult<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for &'a CurvePointResult<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for CurvePoint<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a MpcPointResult<C>> for CurvePointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<&ResultHandle<C, CurvePoint<C>>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &CurvePointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<&'a ResultHandle<C, CurvePoint<C>>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a CurvePointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<CurvePoint<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: CurvePoint<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<MpcPointResult<C>> for &'a CurvePoint<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<MpcPointResult<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<MpcPointResult<C>> for &'a CurvePointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<MpcPointResult<C>> for CurvePoint<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<MpcPointResult<C>> for CurvePointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: CurvePointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add<ResultHandle<C, CurvePoint<C>>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: CurvePointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: CurveGroup> Add for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the + operation. Read more
Source§

impl<C: Clone + CurveGroup> Clone for MpcPointResult<C>

Source§

fn clone(&self) -> MpcPointResult<C>

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<C: Debug + CurveGroup> Debug for MpcPointResult<C>

Source§

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

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

impl<C: CurveGroup> From<ResultHandle<C, CurvePoint<C>>> for MpcPointResult<C>

Source§

fn from(value: CurvePointResult<C>) -> Self

Converts to this type from the input type.
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcPointResult<C>> for &'a MpcScalarResult<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcPointResult<C>> for &'a ScalarResult<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcPointResult<C>> for &'a Scalar<C>

lhs borrowed, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcPointResult<C>> for MpcScalarResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcPointResult<C>> for ScalarResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcPointResult<C>> for Scalar<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<&MpcScalarResult<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a MpcScalarResult<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<&ResultHandle<C, Scalar<C>>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a ResultHandle<C, Scalar<C>>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<&Scalar<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<&'a Scalar<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<MpcPointResult<C>> for &'a MpcScalarResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<MpcPointResult<C>> for &'a ScalarResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<MpcPointResult<C>> for &'a Scalar<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<MpcPointResult<C>> for MpcScalarResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<MpcPointResult<C>> for ScalarResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<MpcPointResult<C>> for Scalar<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<MpcScalarResult<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<MpcScalarResult<C>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<ResultHandle<C, Scalar<C>>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, C: CurveGroup> Mul<Scalar<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Mul<Scalar<C>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<C: CurveGroup> Neg for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<C: CurveGroup> Neg for MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<C: CurveGroup> Sub<&CurvePoint<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&MpcPointResult<C>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &MpcPointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a MpcPointResult<C>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a MpcPointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<&ResultHandle<C, CurvePoint<C>>> for &MpcPointResult<C>

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &CurvePointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<&'a ResultHandle<C, CurvePoint<C>>> for MpcPointResult<C>

lhs owned, rhs borrowed

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a CurvePointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<CurvePoint<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<CurvePoint<C>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: CurvePoint<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<MpcPointResult<C>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, C: CurveGroup> Sub<ResultHandle<C, CurvePoint<C>>> for &'a MpcPointResult<C>

lhs borrowed, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: CurvePointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub<ResultHandle<C, CurvePoint<C>>> for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: CurvePointResult<C>) -> Self::Output

Performs the - operation. Read more
Source§

impl<C: CurveGroup> Sub for MpcPointResult<C>

lhs owned, rhs owned

Source§

type Output = MpcPointResult<C>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: MpcPointResult<C>) -> Self::Output

Performs the - operation. Read more

Auto Trait Implementations§

§

impl<C> Freeze for MpcPointResult<C>

§

impl<C> !RefUnwindSafe for MpcPointResult<C>

§

impl<C> Send for MpcPointResult<C>

§

impl<C> Sync for MpcPointResult<C>

§

impl<C> Unpin for MpcPointResult<C>

§

impl<C> !UnwindSafe for MpcPointResult<C>

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