Enum cursive::menu::MenuItem [] [src]

pub enum MenuItem {
    Leaf(StringCallback),
    Subtree(StringRc<MenuTree>),
    Delimiter,
}

Node in the menu tree.

Variants

Actionnable button with a label.

Sub-menu with a label.

Delimiter without a label.

Methods

impl MenuItem
[src]

Returns the label for this item.

Returns an empty string if self is a delimiter.

Returns true if self is a delimiter.

Returns true if self is a subtree.