pub struct TagLen(/* private fields */);Expand description
Length of an Argon2 tag (raw hash output), in bytes.
RFC 9106’s name for the digest. No bits() constructor — only whole bytes.
Like Memory, this validates nothing; ParamsBuilder::build does.
use argon2_rust::params::TagLen;
// RFC 9106's "256-bit tag"
assert_eq!(TagLen::bytes(32).as_bytes(), 32);Implementations§
Trait Implementations§
impl Copy for TagLen
impl Eq for TagLen
Source§impl Ord for TagLen
impl Ord for TagLen
1.21.0 (const: unstable) · 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 PartialOrd for TagLen
impl PartialOrd for TagLen
impl StructuralPartialEq for TagLen
Auto Trait Implementations§
impl Freeze for TagLen
impl RefUnwindSafe for TagLen
impl Send for TagLen
impl Sync for TagLen
impl Unpin for TagLen
impl UnsafeUnpin for TagLen
impl UnwindSafe for TagLen
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