pub trait Runnable:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn cmd_string(&self) -> String;
fn label_string(&self) -> String;
fn arguments(&self) -> Option<Vec<Value>>;
fn range(&self) -> &Range;
// Provided method
fn command(&self) -> Command { ... }
}
Expand description
A runnable is a sway function that can be executed in the editor.
Required Methods§
Sourcefn cmd_string(&self) -> String
fn cmd_string(&self) -> String
The command name defined in the client.
Sourcefn label_string(&self) -> String
fn label_string(&self) -> String
The label to display in the editor.