Struct spinner::menu::Menu [] [src]

pub struct Menu {
    // some fields omitted
}

A menu that has not yet been displayed

Methods

impl Menu

fn new(i: Vec<MenuOption>) -> Self

Construct a new menu using the given MenuOptions

fn display(self) -> Vec<MenuOption>

Consume the menu and return a Vector of MenuOptions with the new values inserted.

Trait Implementations

Derived Implementations

impl Debug for Menu

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Menu

fn clone(&self) -> Menu

fn clone_from(&mut self, source: &Self)