pub struct Index<'c> { /* private fields */ }
Expand description
A collection of translation units.
Implementations
sourceimpl<'c> Index<'c>
impl<'c> Index<'c>
sourcepub fn new(_: &'c Clang, exclude: bool, diagnostics: bool) -> Index<'c>
pub 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.
sourcepub fn parser<F: Into<PathBuf>>(&'c self, f: F) -> Parser<'c>
pub fn parser<F: Into<PathBuf>>(&'c self, f: F) -> Parser<'c>
Returns a parser for the supplied file.
sourcepub fn set_invocation_emission_path<P: AsRef<Path>>(&'c self, path: P)
pub fn set_invocation_emission_path<P: AsRef<Path>>(&'c self, path: P)
Sets the invocation emission path for this index.
sourcepub fn get_thread_options(&self) -> ThreadOptions
pub fn get_thread_options(&self) -> ThreadOptions
Returns the thread options for this index.
sourcepub fn set_thread_options(&mut self, options: ThreadOptions)
pub fn set_thread_options(&mut self, options: ThreadOptions)
Sets the thread options for this index.
Trait Implementations
Auto Trait Implementations
impl<'c> RefUnwindSafe for Index<'c>
impl<'c> !Send for Index<'c>
impl<'c> !Sync for Index<'c>
impl<'c> Unpin for Index<'c>
impl<'c> UnwindSafe for Index<'c>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more