Struct libkeycard::ArgonHash
source · [−]pub struct ArgonHash { /* private fields */ }Expand description
A basic data type representing an Argon2id password hash. It is used to ensure passing around valid data within the library. This might someday be genericized, but for now it’s fine.
Implementations
sourceimpl ArgonHash
impl ArgonHash
sourcepub fn from_hashstr(passhash: &str) -> ArgonHash
pub fn from_hashstr(passhash: &str) -> ArgonHash
Creates an ArgonHash object from a verified string
sourcepub fn get_hashtype(&self) -> &str
pub fn get_hashtype(&self) -> &str
Returns the object’s hash type
Trait Implementations
sourceimpl PartialOrd<ArgonHash> for ArgonHash
impl PartialOrd<ArgonHash> for ArgonHash
sourcefn partial_cmp(&self, other: &ArgonHash) -> Option<Ordering>
fn partial_cmp(&self, other: &ArgonHash) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl StructuralPartialEq for ArgonHash
Auto Trait Implementations
impl RefUnwindSafe for ArgonHash
impl Send for ArgonHash
impl Sync for ArgonHash
impl Unpin for ArgonHash
impl UnwindSafe for ArgonHash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more