Struct akd::NonMembershipProof
source · pub struct NonMembershipProof {
pub label: NodeLabel,
pub longest_prefix: NodeLabel,
pub longest_prefix_children: [Node; 2],
pub longest_prefix_membership_proof: MembershipProof,
}
Expand description
Merkle Patricia proof of non-membership for a NodeLabel
in the tree
at a given epoch.
Fields§
§label: NodeLabel
The label in question
longest_prefix: NodeLabel
The longest prefix in the tree
longest_prefix_children: [Node; 2]
The children of the longest prefix
longest_prefix_membership_proof: MembershipProof
The membership proof of the longest prefix
Trait Implementations§
source§impl Clone for NonMembershipProof
impl Clone for NonMembershipProof
source§fn clone(&self) -> NonMembershipProof
fn clone(&self) -> NonMembershipProof
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 NonMembershipProof
impl Debug for NonMembershipProof
source§impl<'de> Deserialize<'de> for NonMembershipProof
impl<'de> Deserialize<'de> for NonMembershipProof
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NonMembershipProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<NonMembershipProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&NonMembershipProof> for NonMembershipProof
impl From<&NonMembershipProof> for NonMembershipProof
source§fn from(input: &NonMembershipProof) -> NonMembershipProof
fn from(input: &NonMembershipProof) -> NonMembershipProof
Converts to this type from the input type.
source§impl PartialEq<NonMembershipProof> for NonMembershipProof
impl PartialEq<NonMembershipProof> for NonMembershipProof
source§fn eq(&self, other: &NonMembershipProof) -> bool
fn eq(&self, other: &NonMembershipProof) -> bool
source§impl Serialize for NonMembershipProof
impl Serialize for NonMembershipProof
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
source§impl TryFrom<&NonMembershipProof> for NonMembershipProof
impl TryFrom<&NonMembershipProof> for NonMembershipProof
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
input: &NonMembershipProof
) -> Result<NonMembershipProof, <NonMembershipProof as TryFrom<&NonMembershipProof>>::Error>
fn try_from(
input: &NonMembershipProof
) -> Result<NonMembershipProof, <NonMembershipProof as TryFrom<&NonMembershipProof>>::Error>
Performs the conversion.
impl Eq for NonMembershipProof
impl StructuralEq for NonMembershipProof
impl StructuralPartialEq for NonMembershipProof
Auto Trait Implementations§
impl RefUnwindSafe for NonMembershipProof
impl Send for NonMembershipProof
impl Sync for NonMembershipProof
impl Unpin for NonMembershipProof
impl UnwindSafe for NonMembershipProof
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.