pub enum StringToKey {
Simple(HashAlgorithm),
Salted(HashAlgorithm, [u8; 8]),
IteratedSalted(HashAlgorithm, [u8; 8], u32),
}Variants§
Implementations§
Source§impl StringToKey
impl StringToKey
pub fn from_bytes(bytes: &[u8]) -> Result<StringToKey, Error>
Trait Implementations§
Source§impl Clone for StringToKey
impl Clone for StringToKey
Source§fn clone(&self) -> StringToKey
fn clone(&self) -> StringToKey
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 StringToKey
impl Debug for StringToKey
impl Copy for StringToKey
Auto Trait Implementations§
impl Freeze for StringToKey
impl RefUnwindSafe for StringToKey
impl Send for StringToKey
impl Sync for StringToKey
impl Unpin for StringToKey
impl UnwindSafe for StringToKey
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