[][src]Struct bitcoin::hash_types::Txid

pub struct Txid(_);

A bitcoin transaction hash/transaction ID.

Implementations

impl Txid[src]

pub fn from_hash(inner: Hash) -> Txid[src]

Create this type from the inner hash type.

pub fn as_hash(&self) -> Hash[src]

Convert this type into the inner hash type.

Trait Implementations

impl AsRef<[u8]> for Txid[src]

impl Borrow<[u8]> for Txid[src]

impl Clone for Txid[src]

impl Copy for Txid[src]

impl Debug for Txid[src]

impl Decodable for Txid[src]

impl Default for Txid[src]

impl Deref for Txid[src]

type Target = [u8]

The resulting type after dereferencing.

impl Display for Txid[src]

impl Encodable for Txid[src]

impl Eq for Txid[src]

impl From<Hash> for Txid[src]

impl From<Txid> for Hash[src]

impl FromStr for Txid[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Txid[src]

impl Hash for Txid[src]

type Engine = <Hash as Hash>::Engine

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 = <Hash as Hash>::Inner

The byte array that represents the hash internally

impl Index<Range<usize>> for Txid[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for Txid[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for Txid[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for Txid[src]

type Output = [u8]

The returned type after indexing.

impl Index<usize> for Txid[src]

type Output = u8

The returned type after indexing.

impl LowerHex for Txid[src]

impl Ord for Txid[src]

impl PartialEq<Txid> for Txid[src]

impl PartialOrd<Txid> for Txid[src]

impl StructuralEq for Txid[src]

impl StructuralPartialEq for Txid[src]

Auto Trait Implementations

impl RefUnwindSafe for Txid

impl Send for Txid

impl Sync for Txid

impl Unpin for Txid

impl UnwindSafe for Txid

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Base32Len for T where
    T: AsRef<[u8]>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'f, T> CheckBase32<Vec<u5>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

impl<T> From<T> for T[src]

impl<T> FromHex for T where
    T: Hash
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToBase32 for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToHex for T where
    T: LowerHex
[src]

pub fn to_hex(&self) -> String[src]

Outputs the hash in hexadecimal form

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.