pub struct IndexParams(pub cuvsCagraIndexParams_t, _);Tuple Fields§
§0: cuvsCagraIndexParams_tImplementations§
Source§impl IndexParams
impl IndexParams
Sourcepub fn new() -> Result<IndexParams>
pub fn new() -> Result<IndexParams>
Returns a new IndexParams
Sourcepub fn set_intermediate_graph_degree(
self,
intermediate_graph_degree: usize,
) -> IndexParams
pub fn set_intermediate_graph_degree( self, intermediate_graph_degree: usize, ) -> IndexParams
Degree of input graph for pruning
Sourcepub fn set_graph_degree(self, graph_degree: usize) -> IndexParams
pub fn set_graph_degree(self, graph_degree: usize) -> IndexParams
Degree of output graph
Sourcepub fn set_build_algo(self, build_algo: BuildAlgo) -> IndexParams
pub fn set_build_algo(self, build_algo: BuildAlgo) -> IndexParams
ANN algorithm to build knn graph
Sourcepub fn set_nn_descent_niter(self, nn_descent_niter: usize) -> IndexParams
pub fn set_nn_descent_niter(self, nn_descent_niter: usize) -> IndexParams
Number of iterations to run if building with NN_DESCENT
pub fn set_compression(self, compression: CompressionParams) -> IndexParams
Trait Implementations§
Source§impl Debug for IndexParams
impl Debug for IndexParams
Auto Trait Implementations§
impl Freeze for IndexParams
impl RefUnwindSafe for IndexParams
impl !Send for IndexParams
impl !Sync for IndexParams
impl Unpin for IndexParams
impl UnwindSafe for IndexParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more