pub struct Editor { /* private fields */ }Expand description
Represents an editor instance with its type and binary path.
Implementations§
Source§impl Editor
impl Editor
Sourcepub fn from_bin_path(binary_path: PathBuf) -> Self
pub fn from_bin_path(binary_path: PathBuf) -> Self
Creates a new Editor instance from a binary path. The editor type is set to UnknownEditor.
Sourcepub fn from_editor_kind(editor_type: EditorKind) -> Self
pub fn from_editor_kind(editor_type: EditorKind) -> Self
Creates a new Editor instance from an editor kind. The binary path is determined using the which crate.
Sourcepub fn new(editor_type: EditorKind, binary_path: PathBuf) -> Self
pub fn new(editor_type: EditorKind, binary_path: PathBuf) -> Self
Creates a new Editor instance with the specified editor type and binary path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Editor
impl RefUnwindSafe for Editor
impl Send for Editor
impl Sync for Editor
impl Unpin for Editor
impl UnwindSafe for Editor
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