pub struct TaprootMerkleBranch(_);
Expand description

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

Implementations§

§

impl TaprootMerkleBranch

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

Returns a reference to the inner vector of hashes.

pub fn len(&self) -> usize

Returns the number of nodes in this merkle proof.

pub fn is_empty(&self) -> bool

Checks if this merkle proof is empty.

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

👎Deprecated since 0.30.0: Use decode instead

Decodes bytes from control block.

pub fn decode(sl: &[u8]) -> Result<TaprootMerkleBranch, 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.

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

Serializes to a writer.

Returns

The number of bytes written to the writer.

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

Serializes self as bytes.

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

Returns the inner list of hashes.

Trait Implementations§

§

impl Clone for TaprootMerkleBranch

§

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
§

impl Debug for TaprootMerkleBranch

§

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

Formats the value using the given formatter. Read more
§

impl Default for TaprootMerkleBranch

§

fn default() -> TaprootMerkleBranch

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

impl From<[TapNodeHash; 0]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 1]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 10]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 100]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 101]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 102]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 103]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 104]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 105]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 106]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 107]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 108]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 109]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 11]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 110]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 111]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 112]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 113]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 114]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 115]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 116]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 117]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 118]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 119]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 12]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 120]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 121]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 122]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 123]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 124]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 125]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 126]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 127]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 128]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 13]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 14]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 15]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 16]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 17]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 18]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 19]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 2]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 20]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 21]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 22]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 23]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 24]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 25]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 26]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 27]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 28]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 29]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 3]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 30]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 31]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 32]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 33]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 34]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 35]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 36]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 37]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 38]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 39]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 4]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 40]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 41]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 42]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 43]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 44]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 45]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 46]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 47]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 48]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 49]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 5]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 50]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 51]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 52]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 53]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 54]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 55]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 56]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 57]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 58]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 59]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 6]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 60]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 61]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 62]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 63]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 64]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 65]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 66]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 67]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 68]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 69]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 7]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 70]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 71]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 72]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 73]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 74]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 75]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 76]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 77]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 78]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 79]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 8]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 80]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 81]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 82]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 83]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 84]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 85]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 86]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 87]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 88]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 89]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 9]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 90]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 91]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 92]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 93]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 94]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 95]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 96]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 97]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 98]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

impl From<[TapNodeHash; 99]> for TaprootMerkleBranch

§

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

Converts to this type from the input type.
§

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

§

fn from(branch: TaprootMerkleBranch) -> Vec<TapNodeHash, Global>

Converts to this type from the input type.
§

impl Hash for TaprootMerkleBranch

§

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

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
§

impl Ord for TaprootMerkleBranch

§

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
§

impl PartialEq<TaprootMerkleBranch> for TaprootMerkleBranch

§

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.
§

impl PartialOrd<TaprootMerkleBranch> for TaprootMerkleBranch

§

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
§

impl TryFrom<&[TapNodeHash]> for TaprootMerkleBranch

§

fn try_from( v: &[TapNodeHash] ) -> Result<TaprootMerkleBranch, <TaprootMerkleBranch as TryFrom<&[TapNodeHash]>>::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.
§

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

§

fn try_from( v: Box<[TapNodeHash], Global> ) -> Result<TaprootMerkleBranch, <TaprootMerkleBranch as TryFrom<Box<[TapNodeHash], Global>>>::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.
§

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

§

fn try_from( v: Vec<TapNodeHash, Global> ) -> Result<TaprootMerkleBranch, <TaprootMerkleBranch as TryFrom<Vec<TapNodeHash, Global>>>::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.
§

impl Eq for TaprootMerkleBranch

§

impl StructuralEq for TaprootMerkleBranch

§

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<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same<T> for T

§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more