pub struct CustomRefKt<'a, const RATE: usize> { /* private fields */ }Expand description
Customized KangarooTwelve hasher generic over rate with borrrowed customization string.
Implementations§
Source§impl<'a, const RATE: usize> CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> CustomRefKt<'a, RATE>
Sourcepub fn new_customized(customization: &'a [u8]) -> Self
pub fn new_customized(customization: &'a [u8]) -> Self
Create new customized KangarooTwelve hasher with borrrowed customization string.
Note that this is an inherent method and CustomRefKt does not implement
the CustomizedInit trait.
Trait Implementations§
Source§impl<const RATE: usize> AlgorithmName for CustomRefKt<'_, RATE>
impl<const RATE: usize> AlgorithmName for CustomRefKt<'_, RATE>
Source§impl<'a, const RATE: usize> Clone for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> Clone for CustomRefKt<'a, RATE>
Source§fn clone(&self) -> CustomRefKt<'a, RATE>
fn clone(&self) -> CustomRefKt<'a, RATE>
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<const RATE: usize> Debug for CustomRefKt<'_, RATE>
impl<const RATE: usize> Debug for CustomRefKt<'_, RATE>
Source§impl<const RATE: usize> Default for CustomRefKt<'static, RATE>
impl<const RATE: usize> Default for CustomRefKt<'static, RATE>
Source§impl<const RATE: usize> ExtendableOutput for CustomRefKt<'_, RATE>
impl<const RATE: usize> ExtendableOutput for CustomRefKt<'_, RATE>
Source§fn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
Source§fn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Finalize XOF and write result into
out.Source§impl<const RATE: usize> ExtendableOutputReset for CustomRefKt<'_, RATE>
impl<const RATE: usize> ExtendableOutputReset for CustomRefKt<'_, RATE>
Source§fn finalize_xof_reset(&mut self) -> Self::Reader
fn finalize_xof_reset(&mut self) -> Self::Reader
Retrieve XOF reader and reset hasher instance state.
Source§fn finalize_xof_reset_into(&mut self, out: &mut [u8])
fn finalize_xof_reset_into(&mut self, out: &mut [u8])
Finalize XOF, write result into
out, and reset the hasher state.Source§impl<const RATE: usize> Reset for CustomRefKt<'_, RATE>
impl<const RATE: usize> Reset for CustomRefKt<'_, RATE>
Source§impl<const RATE: usize> Update for CustomRefKt<'_, RATE>
impl<const RATE: usize> Update for CustomRefKt<'_, RATE>
impl<const RATE: usize> HashMarker for CustomRefKt<'_, RATE>
Auto Trait Implementations§
impl<'a, const RATE: usize> Freeze for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> RefUnwindSafe for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> Send for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> Sync for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> Unpin for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> UnsafeUnpin for CustomRefKt<'a, RATE>
impl<'a, const RATE: usize> UnwindSafe for CustomRefKt<'a, RATE>
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