Struct TaprootMerkleBranch

pub struct TaprootMerkleBranch(/* private fields */);
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>

Serializes self as bytes.

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

Returns the inner list of hashes.

Trait Implementations§

§

impl Clone for TaprootMerkleBranch

§

fn clone(&self) -> TaprootMerkleBranch

Returns a duplicate 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<'de> Deserialize<'de> for TaprootMerkleBranch

§

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

Deserialize this value from the given Serde deserializer. 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>

§

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

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) -> Self
where Self: Sized,

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

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

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

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for TaprootMerkleBranch

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl PartialOrd 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

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

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

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

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

impl Serialize for TaprootMerkleBranch

§

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

Serialize this value into the given Serde serializer. 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]>> for TaprootMerkleBranch

§

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

§

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

§

impl StructuralPartialEq for TaprootMerkleBranch

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

§

impl<T> AsAny for T
where T: Any,

§

fn as_any(&self) -> &(dyn Any + 'static)

§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

§

fn type_name(&self) -> &'static str

Gets the type name of self
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> Downcast for T
where T: AsAny + ?Sized,

§

fn is<T>(&self) -> bool
where T: AsAny,

Returns true if the boxed type is the same as T. Read more
§

fn downcast_ref<T>(&self) -> Option<&T>
where T: AsAny,

Forward to the method defined on the type Any.
§

fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: AsAny,

Forward to the method defined on the type Any.
Source§

impl<Q, K> Equivalent<K> for Q
where 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.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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

§

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

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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

§

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

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

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

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

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 T
where 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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 T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DartSafe for T

Source§

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

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> Sequence for T
where T: Eq + Hash,

§

impl<T> TaskRetFutTrait for T
where T: Send,