#[repr(C)]pub struct cuvsFilter {
pub addr: usize,
pub type_: cuvsFilterType,
}Expand description
@brief Struct to hold address of cuvs::neighbors::prefilter and its type
addr points to a filter object owned by the caller; the library performs no caching of the
underlying bitset across search calls. Allocating and populating the device bitset may be more
expensive than a single filtered search, so callers that issue repeated searches against the same
filter (e.g. many queries over one index) should build the bitset once and reuse the same
cuvsFilter across those calls rather than rebuild it per search. Reusing the bitset is essential
for realizing the full throughput of filtered search.
Fields§
§addr: usize§type_: cuvsFilterTypeTrait Implementations§
Source§impl Clone for cuvsFilter
impl Clone for cuvsFilter
impl Copy for cuvsFilter
Auto Trait Implementations§
impl Freeze for cuvsFilter
impl RefUnwindSafe for cuvsFilter
impl Send for cuvsFilter
impl Sync for cuvsFilter
impl Unpin for cuvsFilter
impl UnsafeUnpin for cuvsFilter
impl UnwindSafe for cuvsFilter
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