pub enum ProllyNode {
Leaf {
hash: Hash,
event_hashes: Vec<String>,
},
Interior {
hash: Hash,
children: Vec<Self>,
},
}Expand description
A Prolly Tree node — either a leaf chunk of events or an interior node pointing to children.
Variants§
Implementations§
Source§impl ProllyNode
impl ProllyNode
Trait Implementations§
Source§impl Clone for ProllyNode
impl Clone for ProllyNode
Source§fn clone(&self) -> ProllyNode
fn clone(&self) -> ProllyNode
Returns a duplicate 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 ProllyNode
impl Debug for ProllyNode
Source§impl<'de> Deserialize<'de> for ProllyNode
impl<'de> Deserialize<'de> for ProllyNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProllyNode
impl RefUnwindSafe for ProllyNode
impl Send for ProllyNode
impl Sync for ProllyNode
impl Unpin for ProllyNode
impl UnsafeUnpin for ProllyNode
impl UnwindSafe for ProllyNode
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
Mutably borrows from an owned value. Read more