Skip to main content

steel_core/inventory/menu/kinds/
basic_menu.rs

1use crate::inventory::menu::MenuKind;
2
3/// A menu kind with all-default handling and no special behavior.
4#[derive(Debug)]
5pub struct BasicKind;
6
7// SAFETY: This Steel-owned key uniquely identifies the concrete menu kind
8// within the process.
9unsafe impl steel_utils::DowncastType for BasicKind {
10    const TYPE_KEY: steel_utils::DowncastTypeKey =
11        steel_utils::DowncastTypeKey::new("steel:menu/basic");
12}
13
14impl MenuKind for BasicKind {}