Struct instant_distance::PointId[][src]

pub struct PointId(_);

References a Point in the Hnsw

This can be used to index into the Hnsw to refer to the Point data.

Implementations

impl PointId[src]

pub fn is_valid(self) -> bool[src]

Whether this value represents a valid point

pub fn into_inner(self) -> u32[src]

Return the identifier value

Trait Implementations

impl Clone for PointId[src]

impl Copy for PointId[src]

impl Debug for PointId[src]

impl Default for PointId[src]

impl Eq for PointId[src]

impl Hash for PointId[src]

impl<P> Index<PointId> for Hnsw<P>[src]

type Output = P

The returned type after indexing.

impl<P: Point> Index<PointId> for [P][src]

type Output = P

The returned type after indexing.

impl Index<PointId> for [RwLock<ZeroNode>][src]

type Output = RwLock<ZeroNode>

The returned type after indexing.

impl Ord for PointId[src]

impl PartialEq<PointId> for PointId[src]

impl PartialOrd<PointId> for PointId[src]

impl StructuralEq for PointId[src]

impl StructuralPartialEq for PointId[src]

Auto Trait Implementations

impl RefUnwindSafe for PointId

impl Send for PointId

impl Sync for PointId

impl Unpin for PointId

impl UnwindSafe for PointId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,