Skip to main content

item_key

Function item_key 

pub fn item_key(kind: &'static str, id: &impl Hash) -> u64
Expand description

The key a draw of something under the innermost open key gets: kind names the draw site and id tells its draws apart. For a widget that draws many items itself (an editor’s blocks, a list’s rows), so each item keeps an element of its own.