Struct clang::Index [] [src]

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

A collection of translation units.

Methods

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

fn new(_: &'c Clang, exclude: bool, diagnostics: bool) -> Index<'c>

Constructs a new Index.

exclude determines whether declarations from precompiled headers are excluded and diagnostics determines whether diagnostics are printed while parsing source files.

fn get_thread_options(&self) -> ThreadOptions

Returns the thread options for this index.

fn set_thread_options(&mut self, options: ThreadOptions)

Sets the thread options for this index.

Trait Implementations

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

fn drop(&mut self)

A method called when the value goes out of scope. Read more

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

fn fmt(&self, formatter: &mut Formatter) -> Result

Formats the value using the given formatter.