Struct clang::completion::CompletionString
[−]
[src]
pub struct CompletionString<'r> { /* fields omitted */ }
A semantic string that describes a code completion result.
Methods
impl<'r> CompletionString<'r>
[src]
fn get_priority(&self) -> usize
Returns an integer that represents how likely a user is to select this completion string as determined by internal heuristics. Smaller values indicate higher priorities.
fn get_annotations(&self) -> Vec<String>
Returns the annotations associated with this completion string.
fn get_availability(&self) -> Availability
Returns the availability of this completion string.
fn get_comment_brief(&self) -> Option<String>
Returns the documentation comment brief associated with the declaration this completion string refers to, if applicable.
fn get_parent_name(&self) -> Option<String>
Returns the name of the semantic parent of the declaration this completion string refers to, if applicable.
fn get_typed_text(&self) -> Option<String>
Returns the text of the typed text chunk for this completion string, if any.
fn get_chunks(&self) -> Vec<CompletionChunk>
Returns the chunks of this completion string.
Trait Implementations
impl<'r> Copy for CompletionString<'r>
[src]
impl<'r> Clone for CompletionString<'r>
[src]
fn clone(&self) -> CompletionString<'r>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'r> Debug for CompletionString<'r>
[src]
impl<'r> PartialEq for CompletionString<'r>
[src]
fn eq(&self, other: &CompletionString<'r>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'r> Eq for CompletionString<'r>
[src]
impl<'r> PartialOrd for CompletionString<'r>
[src]
fn partial_cmp(&self, other: &CompletionString<'r>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'r> Ord for CompletionString<'r>
[src]
fn cmp(&self, other: &CompletionString<'r>) -> Ordering
This method returns an Ordering
between self
and other
. Read more