pub enum RunnableKind {
Check,
Run,
TestOne,
TestMod,
DocTestOne,
BenchOne,
Flycheck,
Unknown,
}Expand description
The kind of runnable.
Variants§
Check
cargo check, basically, with human-readable output.
Run
Can run a binary.
May include {label} which will get the label from the build section of a crate.
TestOne
Run a single test.
May include {label} which will get the label from the build section of a crate.
May include {test_id} which will get the test clicked on by the user.
TestMod
Run tests matching a pattern (in RA, usually a path::to::module::of::tests)
May include {label} which will get the label from the build section of a crate.
May include {test_pattern} which will get the test module clicked on by the user.
DocTestOne
Run a single doctest
May include {label} which will get the label from the build section of a crate.
May include {test_id} which will get the doctest clicked on by the user.
BenchOne
Run a single benchmark
May include {label} which will get the label from the build section of a crate.
May include {bench_id} which will get the benchmark clicked on by the user.
Flycheck
Template for checking a target, emitting rustc JSON diagnostics.
May include {label} which will get the label from the build section of a crate.
Unknown
For forwards-compatibility, i.e. old rust-analyzer binary with newer workspace discovery tools
Trait Implementations§
Source§impl Clone for RunnableKind
impl Clone for RunnableKind
Source§fn clone(&self) -> RunnableKind
fn clone(&self) -> RunnableKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunnableKind
impl Debug for RunnableKind
Source§impl From<RunnableKindData> for RunnableKind
impl From<RunnableKindData> for RunnableKind
Source§fn from(data: RunnableKindData) -> Self
fn from(data: RunnableKindData) -> Self
Source§impl PartialEq for RunnableKind
impl PartialEq for RunnableKind
impl Eq for RunnableKind
impl StructuralPartialEq for RunnableKind
Auto Trait Implementations§
impl Freeze for RunnableKind
impl RefUnwindSafe for RunnableKind
impl Send for RunnableKind
impl Sync for RunnableKind
impl Unpin for RunnableKind
impl UnsafeUnpin for RunnableKind
impl UnwindSafe for RunnableKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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