pub trait AnyIndex<T: TableType>: AnyIndexInternal<T> {
// Required methods
fn exists(&self, record: &Record<T>) -> DbResult<Vec<u64>>;
fn search(&self, value: Box<dyn Any>) -> DbResult<Vec<Record<T>>>;
fn idx_name(&self) -> String;
fn gen_key(&self, data: &T) -> DbResult<Vec<u8>>;
}Expand description
Type which Index can be casted to which doesn’t require the I type parameter.