[−][src]Struct clang::Index
A collection of translation units.
Implementations
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
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,