pub struct ProofPath { /* fields omitted */ }
Bit slice type used internally to serialize ProofMapKey
s.
A single slice can contain from 1 to PROOF_MAP_KEY_SIZE
* 8
bits.
Position in bytes | Description |
0 | ProofPath kind: (0 is branch, 1 is leaf) |
1..33 | ProofMapKey bytes. |
33 | Total length in bits of ProofMapKey for branches. |
Serialized as a string of '0'
and '1'
chars, corresponding exactly to bits in the slice.
Creates a path from the given key.
Checks if this is a path to a leaf ProofMapIndex
node.
Returns the byte representation of contained ProofMapKey
.
Returns the size of the serialized key in bytes.
Serializes the key into the specified buffer of bytes. Read more
Deserializes the key from the specified buffer of bytes.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
Serializes content of a transaction with the given serializer.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static