Struct bitcoin_hashes::sha256::HashEngine
source · pub struct HashEngine { /* private fields */ }
Expand description
Engine to compute SHA256 hash function.
Implementations§
source§impl HashEngine
impl HashEngine
sourcepub fn from_midstate(midstate: Midstate, length: usize) -> HashEngine
pub fn from_midstate(midstate: Midstate, length: usize) -> HashEngine
Trait Implementations§
source§impl Clone for HashEngine
impl Clone for HashEngine
source§fn clone(&self) -> HashEngine
fn clone(&self) -> HashEngine
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for HashEngine
impl Default for HashEngine
source§impl HashEngine for HashEngine
impl HashEngine for HashEngine
source§fn midstate(&self) -> Midstate
fn midstate(&self) -> Midstate
Outputs the midstate of the hash engine. This function should not be
used directly unless you really know what you’re doing.
source§const BLOCK_SIZE: usize = 64usize
const BLOCK_SIZE: usize = 64usize
Length of the hash’s internal block size, in bytes.
source§fn n_bytes_hashed(&self) -> usize
fn n_bytes_hashed(&self) -> usize
Return the number of bytes already n_bytes_hashed(inputted).
Auto Trait Implementations§
impl Freeze for HashEngine
impl RefUnwindSafe for HashEngine
impl Send for HashEngine
impl Sync for HashEngine
impl Unpin for HashEngine
impl UnwindSafe for HashEngine
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)