enum EditorKind {
Vscode,
Vim,
Emacs,
Helix,
}
Expand description
Handles editor-specific setup differences
Variants§
Implementations§
source§impl EditorKind
impl EditorKind
fn prompt_user() -> Result<Option<EditorKind>>
sourcefn hashes(&self) -> Vec<&str>
fn hashes(&self) -> Vec<&str>
A list of historical hashes of each LSP settings file New entries should be appended whenever this is updated so we can detect outdated vs. user-modified settings files.
fn settings_path(&self, config: &Config) -> PathBuf
fn settings_short_path(&self) -> PathBuf
fn settings_folder(&self) -> PathBuf
fn settings_template(&self) -> &str
fn backup_extension(&self) -> String
Trait Implementations§
source§impl Clone for EditorKind
impl Clone for EditorKind
source§fn clone(&self) -> EditorKind
fn clone(&self) -> EditorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EditorKind
impl Debug for EditorKind
source§impl PartialEq for EditorKind
impl PartialEq for EditorKind
impl Eq for EditorKind
impl StructuralPartialEq for EditorKind
Auto Trait Implementations§
impl Freeze for EditorKind
impl RefUnwindSafe for EditorKind
impl Send for EditorKind
impl Sync for EditorKind
impl Unpin for EditorKind
impl UnwindSafe for EditorKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Vscode
: 0 bytesVim
: 0 bytesEmacs
: 0 bytesHelix
: 0 bytes