From a8e14346a7c2b1e5377e1d95fbe6d3309d9604e6 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Tue, 26 Oct 2021 16:46:35 +0200 Subject: [PATCH] Add clarifying comment --- packages/storage-plus/src/indexes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/storage-plus/src/indexes.rs b/packages/storage-plus/src/indexes.rs index a33e6696c..8e578daa5 100644 --- a/packages/storage-plus/src/indexes.rs +++ b/packages/storage-plus/src/indexes.rs @@ -323,6 +323,7 @@ pub(crate) struct UniqueRef { /// 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>,