Struct bitcoin_hashes::sha256t::Hash [−][src]
#[repr(transparent)]pub struct Hash<T: Tag>(_, _);
Output of the SHA256t hash function.
Trait Implementations
impl<T: Tag> Clone for Hash<T>
[src]
impl<T: Tag> Clone for Hash<T>
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de, T: Tag> Deserialize<'de> for Hash<T>
[src]
impl<'de, T: Tag> Deserialize<'de> for Hash<T>
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Hash<T>, D::Error>
[src]
impl<T: Tag> Hash for Hash<T>
[src]
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
fn engine() -> HashEngineⓘNotable traits for HashEngine
impl Write for HashEngine
[src]
Notable traits for HashEngine
impl Write for HashEngine
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]
impl<T: Tag> PartialOrd<Hash<T>> for Hash<T>
[src]
impl<T: Tag> PartialOrd<Hash<T>> for Hash<T>
[src]impl<T: Tag> Copy for Hash<T>
[src]
impl<T: Tag> Eq for Hash<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Hash<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Hash<T> where
T: Send,
T: Send,
impl<T> Sync for Hash<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Hash<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Hash<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,