composable-indexes 0.9.0

In-memory collections with composable indexes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * A marker trait for types that support cloning without having to copy all indexed values.
 *
 * This likely means that either:
 *
 * - The type uses persistent data structures internally (e.g., `crate::index::im::BTreeIndex`)
 * - The type only works using aggregations that do not store all samples (e.g., `crate::aggregation::Count`)
 */
pub trait ShallowClone: Clone {
    fn shallow_clone(&self) -> Self {
        self.clone()
    }
}