pub enum EditorLaunch {
Direct(CommandSpec),
InTerminal(CommandSpec),
DefaultApp,
}Expand description
How to open a file for editing.
Variants§
Direct(CommandSpec)
A GUI editor, started as is.
InTerminal(CommandSpec)
A terminal editor, already wrapped in a terminal emulator.
DefaultApp
No editor is configured: open the file with the desktop’s default application, as Enter does.
Trait Implementations§
Source§impl Clone for EditorLaunch
impl Clone for EditorLaunch
Source§impl Debug for EditorLaunch
impl Debug for EditorLaunch
impl Eq for EditorLaunch
Source§impl PartialEq for EditorLaunch
impl PartialEq for EditorLaunch
impl StructuralPartialEq for EditorLaunch
Auto Trait Implementations§
impl Forget for EditorLaunch
impl Freeze for EditorLaunch
impl Move for EditorLaunch
impl RefUnwindSafe for EditorLaunch
impl Send for EditorLaunchwhere
RawVecInner: Send,
impl Sync for EditorLaunchwhere
RawVecInner: Sync,
impl Unpin for EditorLaunch
impl UnsafeUnpin for EditorLaunchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for EditorLaunchwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.