pub enum ToolchainSource {
Configuration,
CompileDatabase,
Environment,
PlatformDefault,
Path,
SystemHeaders,
}Expand description
How a toolchain was found, strongest first.
Variants§
Configuration
compile.compiler in .cppls.toml: a person naming the compiler.
CompileDatabase
The compile database’s own command for the file.
Environment
CXX or CC.
PlatformDefault
The platform’s own toolchain: MSVC on Windows.
Path
A name found on PATH.
SystemHeaders
Nothing could be asked: the system’s conventional header directories.
Implementations§
Trait Implementations§
Source§impl Clone for ToolchainSource
impl Clone for ToolchainSource
Source§fn clone(&self) -> ToolchainSource
fn clone(&self) -> ToolchainSource
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 moreimpl Copy for ToolchainSource
Source§impl Debug for ToolchainSource
impl Debug for ToolchainSource
impl Eq for ToolchainSource
Source§impl PartialEq for ToolchainSource
impl PartialEq for ToolchainSource
impl StructuralPartialEq for ToolchainSource
Auto Trait Implementations§
impl Forget for ToolchainSource
impl Freeze for ToolchainSource
impl Move for ToolchainSource
impl RefUnwindSafe for ToolchainSource
impl Send for ToolchainSource
impl Sync for ToolchainSource
impl Unpin for ToolchainSource
impl UnsafeUnpin for ToolchainSource
impl UnwindSafe for ToolchainSource
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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