faiss_IndexIDMap2_cast

Function faiss_IndexIDMap2_cast 

Source
pub unsafe extern "C" fn faiss_IndexIDMap2_cast(
    arg1: *mut FaissIndex,
) -> *mut FaissIndexIDMap2
Expand description

attempt a dynamic cast to a IDMap2, thus checking check whether the underlying index type is IndexIDMap.

@param index opaque pointer to index object @return the same pointer if the index is a IDMap2 index, NULL otherwise