pub fn collect_stable_vec_from<K, V, M>(map: &BTreeMap<K, V, M>) -> Vec<(K, V)>Expand description
Collects entries from a BTreeMap into a Vec<(K, V)>.
This is a convenience wrapper over collect_stable_vec that calls .iter() for you.
§Type Parameters
K: Key type (must beStorable,Clone, andOrd)V: Value type (must beStorableandClone)M: Stable memory backend
§Example
ⓘ
let vec = collect_stable_vec_from(&my_stable_map);