pub struct TerminalMenuItem { /* private fields */ }

Implementations

Get the name of the terminal-menu item.

Set a color to print the item in.

Example
use terminal_menu::{menu, label, scroll};
use crossterm::style::Color;
let menu = menu(vec![
    label("Colorize me").colorize(Color::Magenta),
    scroll("Me too!", vec!["foo", "bar"]).colorize(Color::Green)
]);

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.