pub struct ToolDetection<I, C> {
pub path: PathBuf,
pub identity: I,
pub capabilities: C,
}Expand description
One tool’s detection outcome plus the path it was invoked at.
path is the resolved absolute path from
crate::ResolvedToolchain; it is preserved here so error
messages can mention the exact executable.
Fields§
§path: PathBuf§identity: I§capabilities: CTrait Implementations§
Source§impl<I: Clone, C: Clone> Clone for ToolDetection<I, C>
impl<I: Clone, C: Clone> Clone for ToolDetection<I, C>
Source§fn clone(&self) -> ToolDetection<I, C>
fn clone(&self) -> ToolDetection<I, C>
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<'de, I, C> Deserialize<'de> for ToolDetection<I, C>where
I: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, I, C> Deserialize<'de> for ToolDetection<I, C>where
I: Deserialize<'de>,
C: Deserialize<'de>,
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<I: PartialEq, C: PartialEq> PartialEq for ToolDetection<I, C>
impl<I: PartialEq, C: PartialEq> PartialEq for ToolDetection<I, C>
Source§fn eq(&self, other: &ToolDetection<I, C>) -> bool
fn eq(&self, other: &ToolDetection<I, C>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<I, C> Serialize for ToolDetection<I, C>
impl<I, C> Serialize for ToolDetection<I, C>
impl<I: Eq, C: Eq> Eq for ToolDetection<I, C>
impl<I, C> StructuralPartialEq for ToolDetection<I, C>
Auto Trait Implementations§
impl<I, C> Freeze for ToolDetection<I, C>
impl<I, C> RefUnwindSafe for ToolDetection<I, C>where
I: RefUnwindSafe,
C: RefUnwindSafe,
impl<I, C> Send for ToolDetection<I, C>
impl<I, C> Sync for ToolDetection<I, C>
impl<I, C> Unpin for ToolDetection<I, C>
impl<I, C> UnsafeUnpin for ToolDetection<I, C>where
I: UnsafeUnpin,
C: UnsafeUnpin,
impl<I, C> UnwindSafe for ToolDetection<I, C>where
I: UnwindSafe,
C: UnwindSafe,
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.