pub enum HasherChallenger<H: Digest + BlockSizeUser> {
Observer(HasherObserver<H>),
Sampler(HasherSampler<H>),
}Expand description
Challenger interface over hashes that implement [Digest] trait,
This challenger works over bytes instead of Field elements
Variants§
Trait Implementations§
Source§impl<H: Digest + BlockSizeUser + FixedOutputReset + Default> Challenger for HasherChallenger<H>
impl<H: Digest + BlockSizeUser + FixedOutputReset + Default> Challenger for HasherChallenger<H>
Source§impl<H: Clone + Digest + BlockSizeUser> Clone for HasherChallenger<H>
impl<H: Clone + Digest + BlockSizeUser> Clone for HasherChallenger<H>
Source§fn clone(&self) -> HasherChallenger<H>
fn clone(&self) -> HasherChallenger<H>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H: Debug + Digest + BlockSizeUser> Debug for HasherChallenger<H>
impl<H: Debug + Digest + BlockSizeUser> Debug for HasherChallenger<H>
Auto Trait Implementations§
impl<H> Freeze for HasherChallenger<H>
impl<H> RefUnwindSafe for HasherChallenger<H>where
H: RefUnwindSafe,
<<H as BlockSizeUser>::BlockSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
<<H as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
impl<H> Send for HasherChallenger<H>where
H: Send,
impl<H> Sync for HasherChallenger<H>where
H: Sync,
impl<H> Unpin for HasherChallenger<H>
impl<H> UnsafeUnpin for HasherChallenger<H>where
H: UnsafeUnpin,
<<H as BlockSizeUser>::BlockSize as ArraySize>::ArrayType<u8>: UnsafeUnpin,
<<H as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: UnsafeUnpin,
impl<H> UnwindSafe for HasherChallenger<H>where
H: UnwindSafe,
<<H as BlockSizeUser>::BlockSize as ArraySize>::ArrayType<u8>: UnwindSafe,
<<H as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: UnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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