[][src]Struct open_in_editor::Editor

pub struct Editor { /* fields omitted */ }

Abstract representation of a code editor.

It's cheap to clone.

Implementations

impl Editor[src]

pub fn new_for_file_extension(ext: &str) -> Option<Self>[src]

Create a new instance appropriate for opening files of this type

Editor::new_for_file_extension("rs");

pub fn open_paths<Pathlike: AsRef<Path>>(
    &self,
    paths: impl IntoIterator<Item = Pathlike>
) -> Result<(), Error>
[src]

Open one or more files in this editor.

Paths can be directories, but it's not guaranteed that all editors will open directories in a sensible way.

This call is non-blocking.

pub fn name(&self) -> Cow<'_, str>[src]

Human-friendly brand name of the editor

Trait Implementations

impl Clone for Editor[src]

Auto Trait Implementations

impl !RefUnwindSafe for Editor

impl Send for Editor

impl Sync for Editor

impl Unpin for Editor

impl !UnwindSafe for Editor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.