faiss_IndexIDMap_cast

Function faiss_IndexIDMap_cast 

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

attempt a dynamic cast to a IDMap, 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 IDMap index, NULL otherwise