diskann-quantization 0.51.0

DiskANN is a fast approximate nearest neighbor search library for high dimensional data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */

use diskann_quantization::bits::{SlicePtr, ptr::sealed::Precursor};

// Here - we check that a user cannot bring in the `Precursor` trait - preventing them from
// directly constructing our interior types.
fn main() {
    let x: Vec<u8> = vec![0; 3];
    let borrowed: SlicePtr<u8> = (&*x).precursor_into();
}