pub struct VsCodeExtension { /* private fields */ }Implementations§
Source§impl VsCodeExtension
impl VsCodeExtension
pub fn new() -> Result<Self, String>
Sourcepub fn with_command(command: &str) -> Result<Self, String>
pub fn with_command(command: &str) -> Result<Self, String>
Create a VsCodeExtension with a specific command
Sourcepub fn find_all_editors() -> Vec<(&'static str, &'static str)>
pub fn find_all_editors() -> Vec<(&'static str, &'static str)>
Find all available VS Code-compatible editors
pub fn current_editor_from_env() -> Option<(&'static str, &'static str)>
pub fn install(&self, force: bool) -> Result<(), String>
pub fn is_installed(&self) -> Result<bool, String>
pub fn show_status(&self) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VsCodeExtension
impl RefUnwindSafe for VsCodeExtension
impl Send for VsCodeExtension
impl Sync for VsCodeExtension
impl Unpin for VsCodeExtension
impl UnwindSafe for VsCodeExtension
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more