1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*/
use Debug;
/// A trait implemented by a quantizer, indicating that it is capable of quantizing the
/// contents oF `From` into `To`.
/// A trait implemented by a quantizer, indicating that it is capable of quantizing the
/// contents oF `From` into `To` with additional help from an argument of type `A`.
///
/// One example use case of the additional argument would be a
/// [`crate::alloc::ScopedAllocator`] through which scratch allocations can be made.
/// Create a distance function (i.e. [`diskann_vector::DistanceFunction`]) from a quantizer.