[][src]Struct clang::completion::CompletionResults

pub struct CompletionResults { /* fields omitted */ }

A set of code completion results.

Implementations

impl CompletionResults[src]

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

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

pub fn get_context(&self) -> Option<CompletionContext>[src]

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

pub fn get_container_kind(&self) -> Option<(EntityKind, bool)>[src]

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.

pub fn get_objc_selector(&self) -> Option<String>[src]

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.

pub fn get_usr(&self) -> Option<Usr>[src]

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

pub fn get_results(&self) -> Vec<CompletionResult<'_>>[src]

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

Trait Implementations

impl Debug for CompletionResults[src]

impl Drop for CompletionResults[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.