pub struct TestDigestHasher(/* private fields */);Expand description
The state for hashing a bytestring into a TestDigest.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for TestDigestHasher
impl<'arbitrary> Arbitrary<'arbitrary> for TestDigestHasher
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for TestDigestHasher
impl Clone for TestDigestHasher
Source§fn clone(&self) -> TestDigestHasher
fn clone(&self) -> TestDigestHasher
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 TestDigestHasher
impl Debug for TestDigestHasher
Source§impl Default for TestDigestHasher
impl Default for TestDigestHasher
Source§fn default() -> TestDigestHasher
fn default() -> TestDigestHasher
Returns the “default value” for a type. Read more
Source§impl Hash for TestDigestHasher
impl Hash for TestDigestHasher
Source§impl Hasher<TestDigest> for TestDigestHasher
impl Hasher<TestDigest> for TestDigestHasher
Source§fn finish(&self) -> TestDigest
fn finish(&self) -> TestDigest
Returns the hash value for the values written so far.
Source§impl HasherWrite for TestDigestHasher
impl HasherWrite for TestDigestHasher
Source§fn write_u128(&mut self, i: u128)
fn write_u128(&mut self, i: u128)
Writes a single
u128 into this
hasher.Source§fn write_usize(&mut self, i: usize)
fn write_usize(&mut self, i: usize)
Writes a single
usize into this
hasher.Source§fn write_i128(&mut self, i: i128)
fn write_i128(&mut self, i: i128)
Writes a single
i128 into this
hasher.Source§fn write_isize(&mut self, i: isize)
fn write_isize(&mut self, i: isize)
Writes a single
isize into this
hasher.Source§fn write_length_prefix(&mut self, len: usize)
fn write_length_prefix(&mut self, len: usize)
Writes a length prefix into this
hasher.
Source§impl Ord for TestDigestHasher
impl Ord for TestDigestHasher
Source§fn cmp(&self, other: &TestDigestHasher) -> Ordering
fn cmp(&self, other: &TestDigestHasher) -> 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 TestDigestHasher
impl PartialEq for TestDigestHasher
Source§impl PartialOrd for TestDigestHasher
impl PartialOrd for TestDigestHasher
impl Copy for TestDigestHasher
impl Eq for TestDigestHasher
impl StructuralPartialEq for TestDigestHasher
Auto Trait Implementations§
impl Freeze for TestDigestHasher
impl RefUnwindSafe for TestDigestHasher
impl Send for TestDigestHasher
impl Sync for TestDigestHasher
impl Unpin for TestDigestHasher
impl UnwindSafe for TestDigestHasher
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