Add BoundedBTreeSet (#8750)

* Add `BoundedBTreeSet`

Part of https://github.com/paritytech/substrate/issues/8719

* fix copy-pasta errors

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Peter Goodspeed-Niklaus
2021-05-10 09:49:45 +02:00
committed by GitHub
parent efe2267ec7
commit 655ebc95fb
2 changed files with 409 additions and 0 deletions
@@ -27,6 +27,7 @@ pub use sp_runtime::TransactionOutcome;
pub mod unhashed;
pub mod hashed;
pub mod bounded_btree_map;
pub mod bounded_btree_set;
pub mod bounded_vec;
pub mod child;
#[doc(hidden)]
@@ -816,6 +817,7 @@ mod private {
impl<Hash: Encode> Sealed for Digest<Hash> {}
impl<T, S> Sealed for BoundedVec<T, S> {}
impl<K, V, S> Sealed for bounded_btree_map::BoundedBTreeMap<K, V, S> {}
impl<T, S> Sealed for bounded_btree_set::BoundedBTreeSet<T, S> {}
}
impl<T: Encode> StorageAppend<T> for Vec<T> {}