Add `BoundedBTreeMap` to `frame_support::storage` (#8745)
* Add `BoundedBTreeMap` to `frame_support::storage` Part of https://github.com/paritytech/substrate/issues/8719. * max_encoded_len will never encode length > bound * requiring users to maintain an unchecked invariant is unsafe * only impl debug when std * add some marker traits * add tests
Showing
- substrate/frame/support/src/storage/bounded_btree_map.rs 421 additions, 0 deletionssubstrate/frame/support/src/storage/bounded_btree_map.rs
- substrate/frame/support/src/storage/bounded_vec.rs 8 additions, 15 deletionssubstrate/frame/support/src/storage/bounded_vec.rs
- substrate/frame/support/src/storage/mod.rs 2 additions, 0 deletionssubstrate/frame/support/src/storage/mod.rs
Please register or sign in to comment