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>,
K: Into<String>,
D: Into<String>,
C: Into<String>,
Creates a new instance of Command
fn key(&self) -> &str
Returns the key
fn display(&self) -> &str
Returns the display string
fn command(&self) -> &str
Returns the command
Trait Implementations
impl Debug for Command
[src]
impl Into<String> for Command
[src]
impl From<String> for Command
[src]
impl Clone for Command
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more