[][src]Struct merklebtree::node::Node

pub struct Node<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
{ pub root_flag: bool, pub parent_id: i32, pub children_id: Vec<i32>, pub content: Vec<T>, pub node_id: i32, pub hash: String, }

Fields

root_flag: boolparent_id: i32children_id: Vec<i32>content: Vec<T>node_id: i32hash: String

Methods

impl<T> Node<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn new_empty(id: i32) -> Self[src]

pub fn new_node(value: T, id: i32) -> Self[src]

pub fn get_content(&self) -> Option<&Vec<T>>[src]

Trait Implementations

impl<T: Clone> Clone for Node<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

impl<T: Debug> Debug for Node<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

Auto Trait Implementations

impl<T> Send for Node<T> where
    T: Send

impl<T> Sync for Node<T> where
    T: Sync

impl<T> Unpin for Node<T> where
    T: Unpin

impl<T> UnwindSafe for Node<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Node<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]