[−][src]Struct merkle_tree_stream::PartialNode
Intermediate Node representation. Same as Node, but without the .hash
field.
Fields
parent: u64
Reference to this node's parent node.
Implementations
impl PartialNode
[src]
pub fn len(&self) -> u64
[src]
Returns the number of elements in the Node, also referred to as its 'length'.
pub fn is_empty(&self) -> bool
[src]
Returns true if the Node contains no elements.
pub fn index(&self) -> u64
[src]
Get the current index into the stream.
pub fn data(&self) -> &NodeKind
[src]
Get the data from the thingy.
Trait Implementations
impl Clone for PartialNode
[src]
fn clone(&self) -> PartialNode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PartialNode
[src]
impl Deref for PartialNode
[src]
impl DerefMut for PartialNode
[src]
impl Eq for PartialNode
[src]
impl Ord for PartialNode
[src]
fn cmp(&self, other: &PartialNode) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PartialNode> for PartialNode
[src]
fn eq(&self, other: &PartialNode) -> bool
[src]
fn ne(&self, other: &PartialNode) -> bool
[src]
impl PartialOrd<PartialNode> for PartialNode
[src]
fn partial_cmp(&self, other: &PartialNode) -> Option<Ordering>
[src]
fn lt(&self, other: &PartialNode) -> bool
[src]
fn le(&self, other: &PartialNode) -> bool
[src]
fn gt(&self, other: &PartialNode) -> bool
[src]
fn ge(&self, other: &PartialNode) -> bool
[src]
impl StructuralEq for PartialNode
[src]
impl StructuralPartialEq for PartialNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for PartialNode
impl Send for PartialNode
impl Sync for PartialNode
impl Unpin for PartialNode
impl UnwindSafe for PartialNode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,