[][src]Struct clang::Index

pub struct Index<'c> { /* fields omitted */ }

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

impl<'c> Drop for Index<'c>[src]

impl<'c> Debug for Index<'c>[src]

Auto Trait Implementations

impl<'c> !Send for Index<'c>

impl<'c> !Sync for Index<'c>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.