pub struct TreeEntry<K = Vec<u8>, V = [u8; 52]> {
pub btree_key: TreeKey<K>,
pub val: V,
}
Expand description
‘tree’ index order is a Ord of NetPkts defined by the order of the tuple ( group, domain, space_depth, spacename, pubkey, create stamp, hash ) A wrapper around TreeKey ( see [[TreeKey::from_fields]] ) and [[TreeValue]] This is the key/value by which packets are saved in the tree index.
Fields§
§btree_key: TreeKey<K>
§val: V
Implementations§
Trait Implementations§
§impl<'de, K, V> Deserialize<'de> for TreeEntry<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, K, V> Deserialize<'de> for TreeEntry<K, V>where K: Deserialize<'de>, V: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TreeEntry<K, V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TreeEntry<K, V>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<K, V> PartialEq for TreeEntry<K, V>where
K: PartialEq,
V: PartialEq,
impl<K, V> PartialEq for TreeEntry<K, V>where K: PartialEq, V: PartialEq,
§impl<K, V> PartialOrd for TreeEntry<K, V>where
K: PartialOrd,
V: PartialOrd,
impl<K, V> PartialOrd for TreeEntry<K, V>where K: PartialOrd, V: PartialOrd,
§fn partial_cmp(&self, other: &TreeEntry<K, V>) -> Option<Ordering>
fn partial_cmp(&self, other: &TreeEntry<K, V>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl<K, V> Serialize for TreeEntry<K, V>where
K: Serialize,
V: Serialize,
impl<K, V> Serialize for TreeEntry<K, V>where K: Serialize, V: Serialize,
§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
impl<K, V> Copy for TreeEntry<K, V>where K: Copy, V: Copy,
impl<K, V> StructuralPartialEq for TreeEntry<K, V>
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for TreeEntry<K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<K, V> Send for TreeEntry<K, V>where K: Send, V: Send,
impl<K, V> Sync for TreeEntry<K, V>where K: Sync, V: Sync,
impl<K, V> Unpin for TreeEntry<K, V>where K: Unpin, V: Unpin,
impl<K, V> UnwindSafe for TreeEntry<K, V>where K: UnwindSafe, V: UnwindSafe,
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