[−][src]Enum pbkdf2_identifier::hash_primitive::HashPrimitive
A wrapper around various common primitives used for PBKDF2. Implements a name and the closure to compute the values. This will later on be a userful abstraction when differentiating between webassembly and multithreaded code.
Variants
Methods
impl HashPrimitive
[src]
pub fn name(&self) -> &'static str
[src]
Returns a readable name for the primitive.
pub fn get_identifier(
&self
) -> Box<dyn Fn(&[u8], &[u8], &[u8], Option<usize>) -> Option<usize>>
[src]
&self
) -> Box<dyn Fn(&[u8], &[u8], &[u8], Option<usize>) -> Option<usize>>
Returns a closure for identifying the iteration count for this specific algorithm.
pub fn get_identifier_threaded(
&self
) -> Box<dyn Fn(&[u8], &[u8], &[u8], Option<usize>, &AtomicBool) -> Option<usize>>
[src]
&self
) -> Box<dyn Fn(&[u8], &[u8], &[u8], Option<usize>, &AtomicBool) -> Option<usize>>
Returns a closure for identifying the iteration count for this specific algorithm.
Trait Implementations
impl Clone for HashPrimitive
[src]
fn clone(&self) -> HashPrimitive
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HashPrimitive
[src]
impl PartialEq<HashPrimitive> for HashPrimitive
[src]
fn eq(&self, other: &HashPrimitive) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for HashPrimitive
[src]
impl StructuralPartialEq for HashPrimitive
[src]
Auto Trait Implementations
impl Send for HashPrimitive
impl Sync for HashPrimitive
impl Unpin for HashPrimitive
impl UnwindSafe for HashPrimitive
impl RefUnwindSafe for HashPrimitive
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self