pub struct Sha1 { /* private fields */ }
Expand description
Sha1
algorithm implementation
Implementations§
source§impl Sha1
impl Sha1
sourcepub const fn const_update(self, input: &[u8]) -> Self
pub const fn const_update(self, input: &[u8]) -> Self
Hashes input
sourcepub const fn const_result(self) -> [u8; 20]
pub const fn const_result(self) -> [u8; 20]
Finalizes algorithm, returning the hash.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sha1
impl Send for Sha1
impl Sync for Sha1
impl Unpin for Sha1
impl UnwindSafe for Sha1
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