Struct rmenu::Command
[−]
[src]
pub struct Command { /* fields omitted */ }
Represents a command that is selectable in the menu
Methods
impl Command
[src]
fn new<K, D, C>(key: K, display: D, command: C) -> Command where
K: Into<String>,
D: Into<String>,
C: Into<String>,
[src]
K: Into<String>,
D: Into<String>,
C: Into<String>,
Creates a new instance of Command
fn key(&self) -> &str
[src]
Returns the key
fn display(&self) -> &str
[src]
Returns the display string
fn command(&self) -> &str
[src]
Returns the command
Trait Implementations
impl Debug for Command
[src]
impl Into<String> for Command
[src]
impl From<String> for Command
[src]
fn from(arg: String) -> Command
[src]
Creates a Command where key, display, and command are equal to arg