pub struct IndexBuilder { /* private fields */ }Implementations§
Source§impl IndexBuilder
impl IndexBuilder
pub fn new(d: u32) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn flat(self) -> Self
pub fn ivf_flat(self, nlist: usize) -> Self
pub fn ivf_pq(self, nlist: usize, m: usize, nbits: usize) -> Self
pub fn pq(self, m: usize, nbits: usize) -> Self
pub fn hnsw(self, m: usize) -> Self
pub fn lsh(self, nbits: usize) -> Self
pub fn metric(self, metric: MetricType) -> Self
pub fn l2(self) -> Self
pub fn ip(self) -> Self
pub fn nprobe(self, nprobe: usize) -> Self
pub fn verbose(self, verbose: bool) -> Self
pub fn build(self) -> Result<IndexImpl>
Auto Trait Implementations§
impl Freeze for IndexBuilder
impl RefUnwindSafe for IndexBuilder
impl Send for IndexBuilder
impl Sync for IndexBuilder
impl Unpin for IndexBuilder
impl UnsafeUnpin for IndexBuilder
impl UnwindSafe for IndexBuilder
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