get

Function get 

Source
pub fn get() -> Result<String, VarError>
Expand description

Get the default editor for the current environment

Examples found in repository?
examples/print.rs (line 4)
3fn main () {
4    match default_editor::get() {
5        Ok(editor) => println!("The default editor is: {}", editor),
6        Err(error) => println!("Error getting default editor: {}", error),
7    }
8}