orx_pseudo_default/implementations/
collections.rs1extern crate alloc;
2
3use crate::{impl_on_generic_type, impl_on_static_life_generic_type, impl_on_type};
4use alloc::collections::{btree_map::BTreeMap, btree_set::BTreeSet};
5use alloc::string::String;
6use alloc::vec::Vec;
7
8impl_on_type!(String, String::new());
9
10impl_on_generic_type!(Vec<T>, T, Vec::new());
11impl_on_generic_type!(BTreeSet<T>, T, BTreeSet::new());
12
13impl_on_generic_type!(BTreeMap<K, V>, K, V, BTreeMap::new());
14
15impl_on_static_life_generic_type!(Option<T>, T, None);