pub enum ResultValue {
Bytes(Vec<u8>),
Scalar(Scalar),
ScalarBatch(Vec<Scalar>),
Point(StarkPoint),
PointBatch(Vec<StarkPoint>),
}
Expand description
The value of a result
Variants§
Bytes(Vec<u8>)
A byte value
Scalar(Scalar)
A scalar value
ScalarBatch(Vec<Scalar>)
A batch of scalars
Point(StarkPoint)
A point on the curve
PointBatch(Vec<StarkPoint>)
A batch of points on the curve
Trait Implementations§
Source§impl Clone for ResultValue
impl Clone for ResultValue
Source§fn clone(&self) -> ResultValue
fn clone(&self) -> ResultValue
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 Debug for ResultValue
impl Debug for ResultValue
Source§impl From<&ResultValue> for Scalar
impl From<&ResultValue> for Scalar
Source§fn from(value: &ResultValue) -> Self
fn from(value: &ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<&ResultValue> for StarkPoint
impl From<&ResultValue> for StarkPoint
Source§fn from(value: &ResultValue) -> Self
fn from(value: &ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<NetworkPayload> for ResultValue
impl From<NetworkPayload> for ResultValue
Source§fn from(value: NetworkPayload) -> Self
fn from(value: NetworkPayload) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for NetworkPayload
impl From<ResultValue> for NetworkPayload
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for Scalar
impl From<ResultValue> for Scalar
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for StarkPoint
impl From<ResultValue> for StarkPoint
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for Vec<Scalar>
impl From<ResultValue> for Vec<Scalar>
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for Vec<StarkPoint>
impl From<ResultValue> for Vec<StarkPoint>
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for Vec<u8>
impl From<ResultValue> for Vec<u8>
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResultValue
impl RefUnwindSafe for ResultValue
impl Send for ResultValue
impl Sync for ResultValue
impl Unpin for ResultValue
impl UnwindSafe for ResultValue
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