Struct clang_sys::support::Clang

source ·
pub struct Clang {
    pub path: PathBuf,
    pub version: Option<CXVersion>,
    pub c_search_paths: Option<Vec<PathBuf>>,
    pub cpp_search_paths: Option<Vec<PathBuf>>,
}
Expand description

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.

Implementations

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 OS X systems, xcodebuild -find clang will next be queried. Last, the directories in the system’s PATH are searched.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.