[−][src]Struct bitcoin_hashes::sha256t::Hash
Output of the SHA256t hash function.
Trait Implementations
impl<T: Tag> Hash for Hash<T>
[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
ⓘImportant traits for HashEnginefn engine() -> HashEngine
[src]
fn from_engine(e: HashEngine) -> Hash<T>
[src]
const LEN: usize
[src]
fn from_slice(sl: &[u8]) -> Result<Hash<T>, 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]
Hashes some bytes
impl<T: Tag> AsRef<[u8]> for Hash<T>
[src]
impl<T: Tag> Ord for Hash<T>
[src]
fn cmp(&self, other: &Hash<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl<T: Tag> PartialOrd<Hash<T>> for Hash<T>
[src]
fn partial_cmp(&self, other: &Hash<T>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Tag> Default for Hash<T>
[src]
impl<T: Tag> Clone for Hash<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Tag> PartialEq<Hash<T>> for Hash<T>
[src]
fn eq(&self, other: &Hash<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Tag> Eq for Hash<T>
[src]
impl<T: Tag> Copy for Hash<T>
[src]
impl<T: Tag> Display for Hash<T>
[src]
impl<T: Tag> Debug for Hash<T>
[src]
impl<T: Tag> Deref for Hash<T>
[src]
impl<T: Tag> Index<usize> for Hash<T>
[src]
impl<T: Tag> Index<Range<usize>> for Hash<T>
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8]
[src]
impl<T: Tag> Index<RangeFrom<usize>> for Hash<T>
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8]
[src]
impl<T: Tag> Index<RangeTo<usize>> for Hash<T>
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &[u8]
[src]
impl<T: Tag> Index<RangeFull> for Hash<T>
[src]
impl<T: Tag> Hash for Hash<T>
[src]
fn hash<H: Hasher>(&self, h: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Tag> FromStr for Hash<T>
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl<T: Tag> LowerHex for Hash<T>
[src]
impl<T: Tag> Borrow<[u8]> for Hash<T>
[src]
Auto Trait Implementations
impl<T> Unpin for Hash<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Hash<T> where
T: Sync,
T: Sync,
impl<T> Send for Hash<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for Hash<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Hash<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToHex for T where
T: LowerHex,
[src]
T: LowerHex,
impl<T> FromHex for T where
T: Hash,
[src]
T: Hash,
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]
Produce an object from a hex string
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,