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,
§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