pub struct Build {
pub label: String,
pub build_file: Utf8PathBuf,
pub target_kind: TargetKind,
}Expand description
Additional, build-specific data about a crate.
Fields§
§label: StringThe name associated with this crate.
This is determined by the build system that produced
the rust-project.json in question. For instance, if buck were used,
the label might be something like //ide/rust/rust-analyzer:rust-analyzer.
Do not attempt to parse the contents of this string; it is a build system-specific
identifier similar to Crate::display_name.
build_file: Utf8PathBufPath corresponding to the build system-specific file defining the crate.
It is roughly analogous to ManifestPath, but it should not be used with
crate::ProjectManifest::from_manifest_file, as the build file may not be
be in the rust-project.json.
target_kind: TargetKindThe kind of target.
Examples (non-exhaustively) include TargetKind::Bin, TargetKind::Lib,
and TargetKind::Test. This information is used to determine what sort
of runnable codelens to provide, if any.
Trait Implementations§
impl Eq for Build
impl StructuralPartialEq for Build
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
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