[−][src]Struct clang_sys::support::Clang
A clang
executable.
Fields
path: PathBuf
The path to this clang
executable.
version: Option<CXVersion>
The version of this clang
executable if it could be parsed.
c_search_paths: Option<Vec<PathBuf>>
The directories searched by this clang
executable for C headers if
they could be parsed.
cpp_search_paths: Option<Vec<PathBuf>>
The directories searched by this clang
executable for C++ headers if
they could be parsed.
Methods
impl Clang
[src]
pub fn find(path: Option<&Path>, args: &[String]) -> Option<Clang>
[src]
Returns a clang
executable if one can be found.
If the CLANG_PATH
environment variable is set, that is the instance of
clang
used. Otherwise, a series of directories are searched. First, if
a path is supplied, that is the first directory searched. Then, the
directory returned by llvm-config --bindir
is searched. On macOS
systems, xcodebuild -find clang
will next be queried. Last, the
directories in the system's PATH
are searched.
Trait Implementations
impl Clone for Clang
[src]
fn clone(&self) -> Clang
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Clang
[src]
Auto Trait Implementations
impl Sync for Clang
impl Unpin for Clang
impl Send for Clang
impl UnwindSafe for Clang
impl RefUnwindSafe for Clang
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,