Skip to main content

EditorService

Trait EditorService 

Source
pub trait EditorService: Send + Sync {
    // Required methods
    fn open(&self, path: &str, line: Option<usize>) -> Result<(), String>;
    fn open_many(&self, paths: &[String]) -> Result<(), String>;
}
Expand description

Open files in external editors.

Required Methods§

Source

fn open(&self, path: &str, line: Option<usize>) -> Result<(), String>

Open a file at the given path, optionally at a specific line.

Source

fn open_many(&self, paths: &[String]) -> Result<(), String>

Open multiple files.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§