[−][src]Struct clang::Index
A collection of translation units.
Methods
impl<'c> Index<'c>
[src]
pub fn new(_: &'c Clang, exclude: bool, diagnostics: bool) -> Index<'c>
[src]
Constructs a new Index
.
exclude
determines whether declarations from precompiled headers are excluded and
diagnostics
determines whether diagnostics are printed while parsing source files.
pub fn parser<F: Into<PathBuf>>(&'c self, f: F) -> Parser<'c>
[src]
Returns a parser for the supplied file.
pub fn get_thread_options(&self) -> ThreadOptions
[src]
Returns the thread options for this index.
pub fn set_thread_options(&mut self, options: ThreadOptions)
[src]
Sets the thread options for this index.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,