pub enum ResultValue<C: CurveGroup> {
Bytes(Vec<u8>),
Scalar(Scalar<C>),
ScalarBatch(Vec<Scalar<C>>),
Point(CurvePoint<C>),
PointBatch(Vec<CurvePoint<C>>),
}
Expand description
The value of a result
Variants§
Bytes(Vec<u8>)
A byte value
Scalar(Scalar<C>)
A scalar value
ScalarBatch(Vec<Scalar<C>>)
A batch of scalars
Point(CurvePoint<C>)
A point on the curve
PointBatch(Vec<CurvePoint<C>>)
A batch of points on the curve
Trait Implementations§
Source§impl<C: Clone + CurveGroup> Clone for ResultValue<C>
impl<C: Clone + CurveGroup> Clone for ResultValue<C>
Source§fn clone(&self) -> ResultValue<C>
fn clone(&self) -> ResultValue<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C: CurveGroup> Debug for ResultValue<C>
impl<C: CurveGroup> Debug for ResultValue<C>
Source§impl<C: CurveGroup> From<&ResultValue<C>> for CurvePoint<C>
impl<C: CurveGroup> From<&ResultValue<C>> for CurvePoint<C>
Source§fn from(value: &ResultValue<C>) -> Self
fn from(value: &ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<&ResultValue<C>> for Scalar<C>
impl<C: CurveGroup> From<&ResultValue<C>> for Scalar<C>
Source§fn from(value: &ResultValue<C>) -> Self
fn from(value: &ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<NetworkPayload<C>> for ResultValue<C>
impl<C: CurveGroup> From<NetworkPayload<C>> for ResultValue<C>
Source§fn from(value: NetworkPayload<C>) -> Self
fn from(value: NetworkPayload<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<ResultValue<C>> for CurvePoint<C>
impl<C: CurveGroup> From<ResultValue<C>> for CurvePoint<C>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<ResultValue<C>> for NetworkPayload<C>
impl<C: CurveGroup> From<ResultValue<C>> for NetworkPayload<C>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<ResultValue<C>> for Scalar<C>
impl<C: CurveGroup> From<ResultValue<C>> for Scalar<C>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<ResultValue<C>> for Vec<CurvePoint<C>>
impl<C: CurveGroup> From<ResultValue<C>> for Vec<CurvePoint<C>>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<ResultValue<C>> for Vec<Scalar<C>>
impl<C: CurveGroup> From<ResultValue<C>> for Vec<Scalar<C>>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Converts to this type from the input type.
Source§impl<C: CurveGroup> From<ResultValue<C>> for Vec<u8>
impl<C: CurveGroup> From<ResultValue<C>> for Vec<u8>
Source§fn from(value: ResultValue<C>) -> Self
fn from(value: ResultValue<C>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for ResultValue<C>
impl<C> RefUnwindSafe for ResultValue<C>
impl<C> Send for ResultValue<C>
impl<C> Sync for ResultValue<C>
impl<C> Unpin for ResultValue<C>
impl<C> UnwindSafe for ResultValue<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more