1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use super::{skeleton::MapRef, kind}; pub struct HashMapRef<const K: usize, const V: usize>(MapRef); impl<const K: usize, const V: usize> kind::AppItem for HashMapRef<K, V> { const MAP: usize = 1; const PROG: usize = 0; fn named(name: &'static str) -> Self { HashMapRef(MapRef::named(name)) } fn kind_mut(&mut self) -> kind::AppItemKindMut<'_> { kind::AppItemKindMut::Map(&mut self.0) } }