pub struct PublicInputValue(/* private fields */);Expand description
Structure that represents a PLONK Circuit Public Input converted into it’s
&[BlsScalar] repr.
Trait Implementations§
Source§impl Clone for PublicInputValue
impl Clone for PublicInputValue
Source§fn clone(&self) -> PublicInputValue
fn clone(&self) -> PublicInputValue
Returns a duplicate 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 PublicInputValue
impl Debug for PublicInputValue
Source§impl Decode for PublicInputValue
impl Decode for PublicInputValue
Source§impl Default for PublicInputValue
impl Default for PublicInputValue
Source§fn default() -> PublicInputValue
fn default() -> PublicInputValue
Returns the “default value” for a type. Read more
Source§impl Encode for PublicInputValue
impl Encode for PublicInputValue
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<Scalar> for PublicInputValue
impl From<Scalar> for PublicInputValue
Source§impl From<JubJubAffine> for PublicInputValue
impl From<JubJubAffine> for PublicInputValue
Source§fn from(point: JubJubAffine) -> Self
fn from(point: JubJubAffine) -> Self
Converts to this type from the input type.
Source§impl From<JubJubExtended> for PublicInputValue
impl From<JubJubExtended> for PublicInputValue
Source§fn from(point: JubJubExtended) -> Self
fn from(point: JubJubExtended) -> Self
Converts to this type from the input type.
Source§impl From<Fr> for PublicInputValue
impl From<Fr> for PublicInputValue
Source§fn from(scalar: JubJubScalar) -> Self
fn from(scalar: JubJubScalar) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PublicInputValue
impl PartialEq for PublicInputValue
impl EncodeLike for PublicInputValue
impl StructuralPartialEq for PublicInputValue
Auto Trait Implementations§
impl Freeze for PublicInputValue
impl RefUnwindSafe for PublicInputValue
impl Send for PublicInputValue
impl Sync for PublicInputValue
impl Unpin for PublicInputValue
impl UnwindSafe for PublicInputValue
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> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
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