pub struct Sha2;Expand description
The built-in Hasher: SHA-256, SHA-384, and SHA-512 per FIPS 180-4,
implemented in-crate so the binding pulls in no dependency.
It is portable and correct but not vectorized. For a large asset, inject an accelerated implementation instead — that is what the trait is for.
Trait Implementations§
impl Copy for Sha2
Auto Trait Implementations§
impl Freeze for Sha2
impl RefUnwindSafe for Sha2
impl Send for Sha2
impl Sync for Sha2
impl Unpin for Sha2
impl UnsafeUnpin for Sha2
impl UnwindSafe for Sha2
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