Struct bitcoin::hash_types::Txid [−][src]
#[repr(transparent)]pub struct Txid(_);
A bitcoin transaction hash/transaction ID.
Implementations
impl Txid
[src]
impl Txid
[src]Trait Implementations
impl<'de> Deserialize<'de> for Txid
[src]
impl<'de> Deserialize<'de> for Txid
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Txid, D::Error>
[src]
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
const LEN: usize
[src]
const DISPLAY_BACKWARD: bool
[src]
fn engine() -> Self::Engine
[src]
fn from_engine(e: Self::Engine) -> Self
[src]
fn from_slice(sl: &[u8]) -> Result<Txid, Error>
[src]
fn from_inner(inner: Self::Inner) -> Self
[src]
fn into_inner(self) -> Self::Inner
[src]
fn as_inner(&self) -> &Self::Inner
[src]
pub fn hash(data: &[u8]) -> Self
[src]
impl PartialOrd<Txid> for Txid
[src]
impl PartialOrd<Txid> for Txid
[src]impl SerdeHash for Txid
[src]
impl SerdeHash for Txid
[src]const N: usize
[src]
fn from_slice_delegated(sl: &[u8]) -> Result<Self, Error>
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn deserialize<'de, D>(
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Copy for Txid
[src]
impl Eq 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> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
[src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn to_base32(&self) -> Vec<u5, Global>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,