Struct clang::CompletionResults [] [src]

pub struct CompletionResults {
    // some fields omitted
}

A set of code completion results.

Methods

impl CompletionResults
[src]

fn get_container_kind(&self) -> Option<(EntityKind, bool)>

Returns the categorization of the entity that contains the code completion context for this set of code completion results and whether that entity is incomplete, if applicable.

fn get_context(&self) -> Option<CompletionContext>

Returns the code completion context for this set of code completion results, if any.

fn get_diagnostics<'tu>(&self, tu: &'tu TranslationUnit<'tu>) -> Vec<Diagnostic<'tu>>

Returns the diagnostics that were produced prior to the code completion context for this set of code completion results.

fn get_objc_selector(&self) -> Option<String>

Returns the selector or partial selector that has been entered this far for the Objective-C message send context for this set of code completion results.

fn get_results(&self) -> Vec<CompletionResult>

Returns the code completion results in this set of code completion results.

fn get_usr(&self) -> Option<Usr>

Returns the USR for the entity that contains the code completion context for this set of code completion results, if applicable.

Trait Implementations

impl Drop for CompletionResults
[src]

fn drop(&mut self)

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

impl Debug for CompletionResults
[src]

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

Formats the value using the given formatter.