Struct bitcoin_hashes::sha256d::Hash
source · Expand description
Output of the SHA256d hash function
Tuple Fields
0: [u8; 32]
Trait Implementations
sourceimpl Hash for Hash
impl Hash for Hash
type Engine = HashEngine
type Engine = HashEngine
A hashing engine which bytes can be serialized into. It is expected
to implement the
io::Write
trait, and to never return errors under
any conditions. Read moresourcefn engine() -> HashEngine ⓘ
fn engine() -> HashEngine ⓘ
Construct a new engine
sourcefn from_engine(e: HashEngine) -> Hash
fn from_engine(e: HashEngine) -> Hash
Produce a hash from the current state of a given engine
sourcefn block_size() -> usize
fn block_size() -> usize
Length of the hash’s internal block size, in bytes
sourcefn display_backward() -> bool
fn display_backward() -> bool
Flag indicating whether user-visible serializations of this hash
should be backward. For some reason Satoshi decided this should be
true for
Sha256dHash
, so here we are. Read moreimpl Copy for Hash
impl Eq for Hash
impl StructuralEq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more