Struct clang::completion::CompletionResults
source · [−]pub struct CompletionResults { /* private fields */ }
Expand description
A set of code completion results.
Implementations
sourceimpl CompletionResults
impl CompletionResults
sourcepub fn get_diagnostics<'tu>(
&self,
tu: &'tu TranslationUnit<'tu>
) -> Vec<Diagnostic<'tu>>
pub 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.
sourcepub fn get_context(&self) -> Option<CompletionContext>
pub fn get_context(&self) -> Option<CompletionContext>
Returns the code completion context for this set of code completion results, if any.
sourcepub fn get_container_kind(&self) -> Option<(EntityKind, bool)>
pub 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.
sourcepub fn get_objc_selector(&self) -> Option<String>
pub 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.
sourcepub fn get_usr(&self) -> Option<Usr>
pub 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.
sourcepub fn get_results(&self) -> Vec<CompletionResult<'_>>
pub fn get_results(&self) -> Vec<CompletionResult<'_>>
Returns the code completion results in this set of code completion results.
Trait Implementations
sourceimpl Debug for CompletionResults
impl Debug for CompletionResults
Auto Trait Implementations
impl RefUnwindSafe for CompletionResults
impl !Send for CompletionResults
impl !Sync for CompletionResults
impl Unpin for CompletionResults
impl UnwindSafe for CompletionResults
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