pub struct ConstSha256 { /* private fields */ }Expand description
Incremental SHA-256 state that can be evaluated at compile time.
This is intended for generated, static commitments whose canonical input is assembled from many slices. It avoids allocating one concatenated buffer and avoids restarting the compression function for every field.
Implementations§
Trait Implementations§
Source§impl Clone for ConstSha256
impl Clone for ConstSha256
impl Copy for ConstSha256
Auto Trait Implementations§
impl Freeze for ConstSha256
impl RefUnwindSafe for ConstSha256
impl Send for ConstSha256
impl Sync for ConstSha256
impl Unpin for ConstSha256
impl UnsafeUnpin for ConstSha256
impl UnwindSafe for ConstSha256
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