junobuild_collections/
utils.rs

1use crate::types::core::CollectionKey;
2
3pub fn range_collection_end(collection: &CollectionKey) -> CollectionKey {
4    // Source: https://github.com/frederikrothenberger
5    // 0u8 shall be use until char::MIN get standardized
6    let mut end_collection: String = collection.clone();
7    end_collection.push(char::from(0u8));
8
9    end_collection
10}