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
/*
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */

use diskann_quantization::{poly, alloc::{Poly, GlobalAllocator}};

// Since `Rc` is not `Send`, this will fail.
fn main() {
    let x = Poly::new(std::rc::Rc::new([1, 2]), GlobalAllocator).unwrap();
    let _ = poly!({std::fmt::Debug + Send}, x);
}