[−][src]Struct bitcoin_hashes::sha256d::Hash
Output of the SHA256d hash function
Trait Implementations
impl AsRef<[u8]> for Hash[src]
impl Borrow<[u8]> for Hash[src]
impl Clone for Hash[src]
impl Copy for Hash[src]
impl Debug for Hash[src]
impl Default for Hash[src]
impl Deref for Hash[src]
impl Display for Hash[src]
impl Eq for Hash[src]
impl FromStr for Hash[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Hash for Hash[src]
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 more
type Inner = [u8; 32]
The byte array that represents the hash internally
fn engine() -> HashEngineⓘNotable traits for HashEngine
impl Write for HashEngine[src]
Notable traits for HashEngine
impl Write for HashEnginefn from_engine(e: HashEngine) -> Hash[src]
const LEN: usize[src]
fn from_slice(sl: &[u8]) -> Result<Hash, Error>[src]
const DISPLAY_BACKWARD: bool[src]
fn into_inner(self) -> Self::Inner[src]
fn as_inner(&self) -> &Self::Inner[src]
fn from_inner(inner: Self::Inner) -> Self[src]
fn hash(data: &[u8]) -> Self[src]
impl Hash for Hash[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Index<Range<usize>> for Hash[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8][src]
impl Index<RangeFrom<usize>> for Hash[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8][src]
impl Index<RangeFull> for Hash[src]
impl Index<RangeTo<usize>> for Hash[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &[u8][src]
impl Index<usize> for Hash[src]
impl LowerHex for Hash[src]
impl Ord for Hash[src]
fn cmp(&self, other: &Hash) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Hash> for Hash[src]
impl PartialOrd<Hash> for Hash[src]
fn partial_cmp(&self, other: &Hash) -> Option<Ordering>[src]
fn lt(&self, other: &Hash) -> bool[src]
fn le(&self, other: &Hash) -> bool[src]
fn gt(&self, other: &Hash) -> bool[src]
fn ge(&self, other: &Hash) -> bool[src]
impl StructuralEq for Hash[src]
impl StructuralPartialEq for Hash[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> FromHex for T where
T: Hash, [src]
T: Hash,
pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator, [src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_hex(s: &str) -> Result<Self, Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToHex for T where
T: LowerHex, [src]
T: LowerHex,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,