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§
Source§impl ConstSha256
impl ConstSha256
Trait Implementations§
Source§impl Clone for ConstSha256
impl Clone for ConstSha256
Source§fn clone(&self) -> ConstSha256
fn clone(&self) -> ConstSha256
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstSha256
Source§impl Default for ConstSha256
impl Default for ConstSha256
Source§fn default() -> ConstSha256
fn default() -> ConstSha256
Returns the “default value” for a type. Read more
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