[−][src]Struct open_in_editor::Editor
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]
&self,
paths: impl IntoIterator<Item = Pathlike>
) -> Result<(), Error>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,