ModuleMapInterface
type ModuleMapInterface
A package's modules, keyed by module name.
type ModuleMapInterface interface {
// Whether a value is stored under `key`.
ContainsKey(key *Identifier) bool
// Every entry, in key order.
Entries() []ModuleMapEntry
// The value stored under `key`, or `None` if there is none.
Get(key *Identifier) *[]byte
// Whether the map holds no entries.
IsEmpty() bool
// Every key, in key order.
Keys() []*Identifier
// The number of entries.
Len() uint64
// Every value, ordered by the key it is stored under.
Values() [][]byte
}