pub struct TaprootMerkleBranch(/* private fields */);
Expand description

The merkle proof for inclusion of a tree in a taptree hash.

Implementations§

source§

impl TaprootMerkleBranch

source

pub fn as_inner(&self) -> &[TapNodeHash]

Returns a reference to the inner vector of hashes.

source

pub fn len(&self) -> usize

Returns the number of nodes in this merkle proof.

source

pub fn is_empty(&self) -> bool

Checks if this merkle proof is empty.

source

pub fn decode(sl: &[u8]) -> Result<Self, TaprootError>

Decodes bytes from control block.

This reads the branch as encoded in the control block: the concatenated 32B byte chunks - one for each hash.

Errors

The function returns an error if the the number of bytes is not an integer multiple of 32 or if the number of hashes exceeds 128.

source

pub fn encode<Write: Write>(&self, writer: Write) -> Result<usize>

Serializes to a writer.

Returns

The number of bytes written to the writer.

source

pub fn serialize(&self) -> Vec<u8>

Serializes self as bytes.

source

pub fn into_inner(self) -> Vec<TapNodeHash>

Returns the inner list of hashes.

Trait Implementations§

source§

impl Clone for TaprootMerkleBranch

source§

fn clone(&self) -> TaprootMerkleBranch

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TaprootMerkleBranch

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TaprootMerkleBranch

source§

fn default() -> TaprootMerkleBranch

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for TaprootMerkleBranch

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<[TapNodeHash; 0]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 0]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 1]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 1]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 10]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 10]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 100]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 100]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 101]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 101]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 102]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 102]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 103]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 103]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 104]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 104]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 105]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 105]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 106]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 106]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 107]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 107]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 108]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 108]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 109]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 109]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 11]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 11]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 110]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 110]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 111]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 111]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 112]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 112]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 113]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 113]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 114]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 114]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 115]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 115]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 116]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 116]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 117]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 117]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 118]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 118]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 119]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 119]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 12]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 12]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 120]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 120]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 121]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 121]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 122]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 122]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 123]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 123]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 124]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 124]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 125]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 125]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 126]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 126]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 127]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 127]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 128]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 128]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 13]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 13]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 14]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 14]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 15]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 15]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 16]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 16]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 17]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 17]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 18]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 18]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 19]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 19]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 2]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 2]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 20]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 20]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 21]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 21]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 22]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 22]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 23]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 23]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 24]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 24]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 25]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 25]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 26]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 26]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 27]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 27]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 28]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 28]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 29]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 29]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 3]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 3]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 30]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 30]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 31]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 31]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 32]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 32]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 33]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 33]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 34]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 34]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 35]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 35]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 36]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 36]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 37]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 37]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 38]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 38]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 39]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 39]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 4]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 4]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 40]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 40]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 41]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 41]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 42]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 42]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 43]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 43]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 44]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 44]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 45]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 45]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 46]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 46]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 47]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 47]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 48]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 48]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 49]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 49]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 5]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 5]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 50]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 50]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 51]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 51]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 52]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 52]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 53]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 53]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 54]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 54]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 55]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 55]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 56]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 56]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 57]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 57]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 58]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 58]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 59]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 59]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 6]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 6]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 60]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 60]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 61]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 61]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 62]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 62]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 63]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 63]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 64]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 64]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 65]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 65]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 66]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 66]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 67]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 67]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 68]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 68]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 69]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 69]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 7]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 7]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 70]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 70]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 71]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 71]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 72]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 72]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 73]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 73]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 74]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 74]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 75]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 75]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 76]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 76]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 77]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 77]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 78]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 78]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 79]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 79]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 8]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 8]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 80]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 80]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 81]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 81]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 82]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 82]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 83]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 83]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 84]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 84]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 85]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 85]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 86]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 86]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 87]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 87]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 88]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 88]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 89]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 89]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 9]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 9]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 90]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 90]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 91]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 91]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 92]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 92]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 93]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 93]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 94]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 94]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 95]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 95]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 96]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 96]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 97]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 97]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 98]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 98]) -> Self

Converts to this type from the input type.
source§

impl From<[TapNodeHash; 99]> for TaprootMerkleBranch

source§

fn from(a: [TapNodeHash; 99]) -> Self

Converts to this type from the input type.
source§

impl From<TaprootMerkleBranch> for Vec<TapNodeHash>

source§

fn from(branch: TaprootMerkleBranch) -> Self

Converts to this type from the input type.
source§

impl Hash for TaprootMerkleBranch

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for TaprootMerkleBranch

source§

fn cmp(&self, other: &TaprootMerkleBranch) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<TaprootMerkleBranch> for TaprootMerkleBranch

source§

fn eq(&self, other: &TaprootMerkleBranch) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<TaprootMerkleBranch> for TaprootMerkleBranch

source§

fn partial_cmp(&self, other: &TaprootMerkleBranch) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for TaprootMerkleBranch

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&[TapNodeHash]> for TaprootMerkleBranch

source§

fn try_from(v: &[TapNodeHash]) -> Result<Self, Self::Error>

Creates a merkle proof from list of hashes.

Errors

If inner proof length is more than TAPROOT_CONTROL_MAX_NODE_COUNT (128).

§

type Error = TaprootError

The type returned in the event of a conversion error.
source§

impl TryFrom<Box<[TapNodeHash], Global>> for TaprootMerkleBranch

source§

fn try_from(v: Box<[TapNodeHash]>) -> Result<Self, Self::Error>

Creates a merkle proof from list of hashes.

Errors

If inner proof length is more than TAPROOT_CONTROL_MAX_NODE_COUNT (128).

§

type Error = TaprootError

The type returned in the event of a conversion error.
source§

impl TryFrom<Vec<TapNodeHash, Global>> for TaprootMerkleBranch

source§

fn try_from(v: Vec<TapNodeHash>) -> Result<Self, Self::Error>

Creates a merkle proof from list of hashes.

Errors

If inner proof length is more than TAPROOT_CONTROL_MAX_NODE_COUNT (128).

§

type Error = TaprootError

The type returned in the event of a conversion error.
source§

impl Eq for TaprootMerkleBranch

source§

impl StructuralEq for TaprootMerkleBranch

source§

impl StructuralPartialEq for TaprootMerkleBranch

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,