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