pub enum Hasher {
Sha1(Sha1),
Sha256(Sha256),
}Expand description
Hash implementations that can be used once.
Variants§
Sha1(Sha1)
An implementation of the SHA1 hash.
We use sha1_checked to implement the same collision detection algorithm as Git.
Sha256(Sha256)
Available on crate feature
sha256 only.An implementation of the SHA256 hash.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hasher
impl RefUnwindSafe for Hasher
impl Send for Hasher
impl Sync for Hasher
impl Unpin for Hasher
impl UnwindSafe for Hasher
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