pub struct HnswNodeCell {
pub node_id: i64,
pub layers: Vec<Vec<i64>>,
}Expand description
One HNSW node’s persisted form. layers[i] is the list of neighbor
node_ids at layer i; the node lives at every layer 0..=layers.len()-1.
Fields§
§node_id: i64§layers: Vec<Vec<i64>>layers[0] is the densest layer (always present); layers.len()
equals the node’s max_layer + 1.
Implementations§
Source§impl HnswNodeCell
impl HnswNodeCell
Trait Implementations§
Source§impl Clone for HnswNodeCell
impl Clone for HnswNodeCell
Source§fn clone(&self) -> HnswNodeCell
fn clone(&self) -> HnswNodeCell
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 HnswNodeCell
impl Debug for HnswNodeCell
Source§impl PartialEq for HnswNodeCell
impl PartialEq for HnswNodeCell
impl StructuralPartialEq for HnswNodeCell
Auto Trait Implementations§
impl Freeze for HnswNodeCell
impl RefUnwindSafe for HnswNodeCell
impl Send for HnswNodeCell
impl Sync for HnswNodeCell
impl Unpin for HnswNodeCell
impl UnsafeUnpin for HnswNodeCell
impl UnwindSafe for HnswNodeCell
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