pub struct TxMerkleNode(/* private fields */);
Expand description
A hash of the Merkle tree branch or root for transactions.
Implementations§
Source§impl TxMerkleNode
impl TxMerkleNode
Sourcepub const fn from_byte_array(bytes: <Hash as Hash>::Bytes) -> Self
pub const fn from_byte_array(bytes: <Hash as Hash>::Bytes) -> Self
Constructs a hash from the underlying byte array.
Sourcepub fn from_slice(sl: &[u8]) -> Result<TxMerkleNode, FromSliceError>
👎Deprecated since 0.15.0: use from_byte_array
instead
pub fn from_slice(sl: &[u8]) -> Result<TxMerkleNode, FromSliceError>
from_byte_array
insteadCopies a byte slice into a hash object.
Sourcepub const fn to_byte_array(self) -> <Hash as Hash>::Bytes
pub const fn to_byte_array(self) -> <Hash as Hash>::Bytes
Returns the underlying byte array.
Sourcepub const fn as_byte_array(&self) -> &<Hash as Hash>::Bytes
pub const fn as_byte_array(&self) -> &<Hash as Hash>::Bytes
Returns a reference to the underlying byte array.
Trait Implementations§
Source§impl AsRef<[u8]> for TxMerkleNode
impl AsRef<[u8]> for TxMerkleNode
Source§impl Borrow<[u8]> for TxMerkleNode
impl Borrow<[u8]> for TxMerkleNode
Source§impl Clone for TxMerkleNode
impl Clone for TxMerkleNode
Source§fn clone(&self) -> TxMerkleNode
fn clone(&self) -> TxMerkleNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TxMerkleNode
impl Debug for TxMerkleNode
Source§impl<'de> Deserialize<'de> for TxMerkleNode
impl<'de> Deserialize<'de> for TxMerkleNode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<TxMerkleNode, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<TxMerkleNode, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TxMerkleNode
impl Display for TxMerkleNode
Source§impl From<Hash> for TxMerkleNode
impl From<Hash> for TxMerkleNode
Source§fn from(inner: Hash) -> TxMerkleNode
fn from(inner: Hash) -> TxMerkleNode
Converts to this type from the input type.
Source§impl From<TxMerkleNode> for Hash
impl From<TxMerkleNode> for Hash
Source§fn from(hashtype: TxMerkleNode) -> Hash
fn from(hashtype: TxMerkleNode) -> Hash
Converts to this type from the input type.
Source§impl FromStr for TxMerkleNode
impl FromStr for TxMerkleNode
Source§impl Hash for TxMerkleNode
impl Hash for TxMerkleNode
Source§impl Hash for TxMerkleNode
impl Hash for TxMerkleNode
Source§const DISPLAY_BACKWARD: bool = true
const DISPLAY_BACKWARD: bool = true
Flag indicating whether user-visible serializations of this hash should be backward. Read more
Source§fn from_byte_array(bytes: Self::Bytes) -> Self
fn from_byte_array(bytes: Self::Bytes) -> Self
Constructs a hash from the underlying byte array.
Source§fn from_slice(sl: &[u8]) -> Result<TxMerkleNode, FromSliceError>
fn from_slice(sl: &[u8]) -> Result<TxMerkleNode, FromSliceError>
👎Deprecated since 0.15.0: use
from_byte_array
insteadCopies a byte slice into a hash object.
Source§fn to_byte_array(self) -> Self::Bytes
fn to_byte_array(self) -> Self::Bytes
Returns the underlying byte array.
Source§fn as_byte_array(&self) -> &Self::Bytes
fn as_byte_array(&self) -> &Self::Bytes
Returns a reference to the underlying byte array.
Source§impl LowerHex for TxMerkleNode
impl LowerHex for TxMerkleNode
Source§impl Ord for TxMerkleNode
impl Ord for TxMerkleNode
Source§fn cmp(&self, other: &TxMerkleNode) -> Ordering
fn cmp(&self, other: &TxMerkleNode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TxMerkleNode
impl PartialEq for TxMerkleNode
Source§impl PartialOrd for TxMerkleNode
impl PartialOrd for TxMerkleNode
Source§impl Serialize for TxMerkleNode
impl Serialize for TxMerkleNode
Source§impl UpperHex for TxMerkleNode
impl UpperHex for TxMerkleNode
impl Copy for TxMerkleNode
impl Eq for TxMerkleNode
impl StructuralPartialEq for TxMerkleNode
Auto Trait Implementations§
impl Freeze for TxMerkleNode
impl RefUnwindSafe for TxMerkleNode
impl Send for TxMerkleNode
impl Sync for TxMerkleNode
impl Unpin for TxMerkleNode
impl UnwindSafe for TxMerkleNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more