pub struct GraphProjection {
pub neighbors: [u16; 8],
pub layer: u8,
pub address: PadicAddr,
}Fields§
§neighbors: [u16; 8]Neighbor indices in the HNSW graph (u16::MAX = empty slot).
layer: u8HNSW layer level.
address: PadicAddrP-adic hierarchical address.
Trait Implementations§
Source§impl Clone for GraphProjection
impl Clone for GraphProjection
Source§fn clone(&self) -> GraphProjection
fn clone(&self) -> GraphProjection
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 GraphProjection
impl Debug for GraphProjection
Source§impl Default for GraphProjection
impl Default for GraphProjection
Source§impl Projection for GraphProjection
impl Projection for GraphProjection
Source§fn id() -> ProjectionId
fn id() -> ProjectionId
Projection type identifier.
Source§fn read(buf: &[u8]) -> Self
fn read(buf: &[u8]) -> Self
Read projection state from a byte slice.
Panics if
buf.len() < Self::byte_size().Source§fn write(&self, buf: &mut [u8])
fn write(&self, buf: &mut [u8])
Write projection state into a byte slice.
Panics if
buf.len() < Self::byte_size().Source§fn shape_hash_contribution(&self) -> u32
fn shape_hash_contribution(&self) -> u32
Contribution to the atom’s shape hash (FNV-1a input).
Auto Trait Implementations§
impl Freeze for GraphProjection
impl RefUnwindSafe for GraphProjection
impl Send for GraphProjection
impl Sync for GraphProjection
impl Unpin for GraphProjection
impl UnsafeUnpin for GraphProjection
impl UnwindSafe for GraphProjection
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