[][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> Unpin for Index<'c>

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

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

impl<'c> RefUnwindSafe for Index<'c>

impl<'c> UnwindSafe for Index<'c>

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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