diskann-quantization 0.55.0

DiskANN3 is a composable library for bringing scalable, accurate and cost-effective vector indexing to multiple databases.
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();
}