pub struct BucketEntry {
pub unique_id: String,
pub point: HyperbolicPoint,
pub level: u32,
pub norm_sq: FixedPoint,
}Expand description
An entry in the spatial index tracking a node’s position in a bucket.
Fields§
§unique_id: StringNode unique identifier
point: HyperbolicPointPosition in the Poincaré disk
level: u32Tree level
norm_sq: FixedPoint‖point‖², cached at construction — turns every VP-tree score into
one dot product plus arithmetic (no sqrt), same trick as
metric_tree::CachedNormPoint.
Implementations§
Source§impl BucketEntry
impl BucketEntry
Sourcepub fn new(unique_id: String, point: HyperbolicPoint, level: u32) -> Self
pub fn new(unique_id: String, point: HyperbolicPoint, level: u32) -> Self
Construct an entry, caching the squared norm of point.
Trait Implementations§
Source§impl Clone for BucketEntry
impl Clone for BucketEntry
Source§fn clone(&self) -> BucketEntry
fn clone(&self) -> BucketEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BucketEntry
impl RefUnwindSafe for BucketEntry
impl Send for BucketEntry
impl Sync for BucketEntry
impl Unpin for BucketEntry
impl UnsafeUnpin for BucketEntry
impl UnwindSafe for BucketEntry
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