Struct ProofV2TargetParent
pub struct ProofV2TargetParent(/* private fields */);Expand description
The already-revealed parent branch of a ProofV2Target.
Self::NONE indicates that no parent is known and the proof must include the actual trie
root. A known parent at path length n makes the proof start at its direct child at length
n + 1. In particular, a known parent at path length zero means the root branch is already
revealed, so the proof starts at one of its direct children. Known parent path lengths are
always less than 64.
Parent contexts are ordered from broadest to narrowest: Self::NONE precedes every known
parent, and known parents are ordered by path length.
Implementations§
§impl ProofV2TargetParent
impl ProofV2TargetParent
pub const NONE: ProofV2TargetParent
pub const NONE: ProofV2TargetParent
No parent branch is known, so the proof must include the actual trie root.
pub const fn new(path_len: usize) -> ProofV2TargetParent
pub const fn new(path_len: usize) -> ProofV2TargetParent
Returns a known parent branch with the given logical path length.
§Panics
Panics if path_len is greater than or equal to 64.
Trait Implementations§
§impl Clone for ProofV2TargetParent
impl Clone for ProofV2TargetParent
§fn clone(&self) -> ProofV2TargetParent
fn clone(&self) -> ProofV2TargetParent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProofV2TargetParent
§impl Debug for ProofV2TargetParent
impl Debug for ProofV2TargetParent
§impl Default for ProofV2TargetParent
impl Default for ProofV2TargetParent
§fn default() -> ProofV2TargetParent
fn default() -> ProofV2TargetParent
impl Eq for ProofV2TargetParent
§impl Ord for ProofV2TargetParent
impl Ord for ProofV2TargetParent
§fn cmp(&self, other: &ProofV2TargetParent) -> Ordering
fn cmp(&self, other: &ProofV2TargetParent) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for ProofV2TargetParent
impl PartialEq for ProofV2TargetParent
§impl PartialOrd for ProofV2TargetParent
impl PartialOrd for ProofV2TargetParent
impl StructuralPartialEq for ProofV2TargetParent
Auto Trait Implementations§
impl Freeze for ProofV2TargetParent
impl RefUnwindSafe for ProofV2TargetParent
impl Send for ProofV2TargetParent
impl Sync for ProofV2TargetParent
impl Unpin for ProofV2TargetParent
impl UnsafeUnpin for ProofV2TargetParent
impl UnwindSafe for ProofV2TargetParent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreimpl<T> MaybeDebug for Twhere
T: Debug,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes