pub struct ProofNonce(/* private fields */);
Expand description
The type for nonces
Implementations§
Source§impl ProofNonce
impl ProofNonce
Sourcepub fn to_bytes_compressed_form(&self) -> [u8; 32]
pub fn to_bytes_compressed_form(&self) -> [u8; 32]
Convert to raw bytes compressed form
Sourcepub fn to_bytes_uncompressed_form(&self) -> [u8; 32]
pub fn to_bytes_uncompressed_form(&self) -> [u8; 32]
Convert to raw bytes uncompressed form
Trait Implementations§
Source§impl AsRef<Fr> for ProofNonce
impl AsRef<Fr> for ProofNonce
Source§impl Clone for ProofNonce
impl Clone for ProofNonce
Source§fn clone(&self) -> ProofNonce
fn clone(&self) -> ProofNonce
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 ProofNonce
impl Debug for ProofNonce
Source§impl Default for ProofNonce
impl Default for ProofNonce
Source§impl<'a> Deserialize<'a> for ProofNonce
impl<'a> Deserialize<'a> for ProofNonce
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProofNonce
impl Display for ProofNonce
Source§impl From<&Fr> for ProofNonce
impl From<&Fr> for ProofNonce
Source§impl From<Fr> for ProofNonce
impl From<Fr> for ProofNonce
Source§impl HashElem for ProofNonce
impl HashElem for ProofNonce
Source§impl Ord for ProofNonce
impl Ord for ProofNonce
Source§fn cmp(&self, other: &ProofNonce) -> Ordering
fn cmp(&self, other: &ProofNonce) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProofNonce
impl PartialEq for ProofNonce
Source§impl PartialOrd for ProofNonce
impl PartialOrd for ProofNonce
Source§impl RandomElem for ProofNonce
impl RandomElem for ProofNonce
Source§impl Serialize for ProofNonce
impl Serialize for ProofNonce
Source§impl TryFrom<&[u8]> for ProofNonce
impl TryFrom<&[u8]> for ProofNonce
impl Copy for ProofNonce
impl Eq for ProofNonce
impl StructuralPartialEq for ProofNonce
Auto Trait Implementations§
impl Freeze for ProofNonce
impl RefUnwindSafe for ProofNonce
impl Send for ProofNonce
impl Sync for ProofNonce
impl Unpin for ProofNonce
impl UnwindSafe for ProofNonce
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> 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