pub fn inventory_of<W: View>() -> Option<InventoryDef>Expand description
The inventory screen W’s markup lays out — where its <Slot>s and
<PlayerInventory> land at the design size — or None for a plain
screen. Its id is the screen’s: a block opens it with
BlockDef::inventory(ID).