Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Oct 26, 2021
1 parent 9e51ab5 commit a8e1434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/storage-plus/src/indexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ pub(crate) struct UniqueRef<T> {

/// UniqueIndex stores (namespace, index_name, idx_value) -> {key, value}
/// Allows one value per index (i.e. unique) and copies pk and data
/// The optional PK type defines the type of Primary Key deserialization.
pub struct UniqueIndex<'a, K, T, PK = ()> {
index: fn(&T) -> K,
idx_map: Map<'a, K, UniqueRef<T>>,
Expand Down

0 comments on commit a8e1434

Please sign in to comment.