pub struct TerminalMenuItem { /* private fields */ }
Get the name of the terminal-menu item.
Set a color to print the item in.
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)
]);
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.