pub struct TxMerkleNode(/* private fields */);Expand description
The merkle root of the merkle tree corresponding to a block’s transactions.
Implementations§
Source§impl TxMerkleNode
impl TxMerkleNode
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, HashParseError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, HashParseError>
Construct a hash-like type from 32 bytes.
Sourcepub fn from_string(hex: String) -> Result<Self, HashParseError>
pub fn from_string(hex: String) -> Result<Self, HashParseError>
Construct a hash-like type from a hex string.
Trait Implementations§
Source§impl Clone for TxMerkleNode
impl Clone for TxMerkleNode
Source§fn clone(&self) -> TxMerkleNode
fn clone(&self) -> TxMerkleNode
Returns a copy 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 Display for TxMerkleNode
impl Display for TxMerkleNode
Source§impl Hash for TxMerkleNode
impl Hash for TxMerkleNode
Source§impl<UT> LiftRef<UT> for TxMerkleNode
impl<UT> LiftRef<UT> for TxMerkleNode
type LiftType = Arc<TxMerkleNode>
Source§impl<UT> LowerError<UT> for TxMerkleNode
impl<UT> LowerError<UT> for TxMerkleNode
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for TxMerkleNode
impl<UT> LowerReturn<UT> for TxMerkleNode
Source§type ReturnType = <Arc<TxMerkleNode> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<TxMerkleNode> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
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<UT> TypeId<UT> for TxMerkleNode
impl<UT> TypeId<UT> for TxMerkleNode
const TYPE_ID_META: MetadataBuffer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more