pub struct ResolvedTool {
pub kind: ToolKind,
pub path: PathBuf,
pub spec: ToolSpec,
pub source: ToolSource,
}Expand description
One concrete tool, ready to be invoked.
Fields§
§kind: ToolKind§path: PathBufAbsolute filesystem path the tool was resolved to. Always
pointed at an existing file by the time a ResolvedTool
is built.
spec: ToolSpecWhat the user (or default) asked for. Stored separately
from path so metadata can show the original spelling
(clang++) without leaking the absolute resolved path.
source: ToolSourceWhere the selection ultimately came from.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedTool
impl Clone for ResolvedTool
Source§fn clone(&self) -> ResolvedTool
fn clone(&self) -> ResolvedTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedTool
impl Debug for ResolvedTool
Source§impl<'de> Deserialize<'de> for ResolvedTool
impl<'de> Deserialize<'de> for ResolvedTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolvedTool
impl PartialEq for ResolvedTool
Source§fn eq(&self, other: &ResolvedTool) -> bool
fn eq(&self, other: &ResolvedTool) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedTool
impl Serialize for ResolvedTool
impl Eq for ResolvedTool
impl StructuralPartialEq for ResolvedTool
Auto Trait Implementations§
impl Freeze for ResolvedTool
impl RefUnwindSafe for ResolvedTool
impl Send for ResolvedTool
impl Sync for ResolvedTool
impl Unpin for ResolvedTool
impl UnsafeUnpin for ResolvedTool
impl UnwindSafe for ResolvedTool
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.