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: 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 ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<<H as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: 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> UnwindSafe for HasherChallenger<H>where
H: UnwindSafe,
<<H as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
<<H as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: 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
§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