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]
impl<'r> CompletionString<'r>
pub fn get_priority(&self) -> usize
[src]
pub 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.
pub fn get_annotations(&self) -> Vec<String>
[src]
pub fn get_annotations(&self) -> Vec<String>
Returns the annotations associated with this completion string.
pub fn get_availability(&self) -> Availability
[src]
pub fn get_availability(&self) -> Availability
Returns the availability of this completion string.
pub fn get_comment_brief(&self) -> Option<String>
[src]
pub fn get_comment_brief(&self) -> Option<String>
Returns the documentation comment brief associated with the declaration this completion string refers to, if applicable.
pub fn get_parent_name(&self) -> Option<String>
[src]
pub fn get_parent_name(&self) -> Option<String>
Returns the name of the semantic parent of the declaration this completion string refers to, if applicable.
pub fn get_typed_text(&self) -> Option<String>
[src]
pub fn get_typed_text(&self) -> Option<String>
Returns the text of the typed text chunk for this completion string, if any.
pub fn get_chunks(&self) -> Vec<CompletionChunk>
[src]
pub fn get_chunks(&self) -> Vec<CompletionChunk>
Returns the chunks of this completion string.
Trait Implementations
impl<'r> Copy for CompletionString<'r>
[src]
impl<'r> Copy for CompletionString<'r>
impl<'r> Clone for CompletionString<'r>
[src]
impl<'r> Clone for CompletionString<'r>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'r> Debug for CompletionString<'r>
[src]
impl<'r> Debug for CompletionString<'r>
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'r> PartialEq for CompletionString<'r>
[src]
impl<'r> PartialEq for CompletionString<'r>
fn eq(&self, other: &CompletionString<'r>) -> bool
[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[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'r> Eq for CompletionString<'r>
[src]
impl<'r> Eq for CompletionString<'r>
impl<'r> PartialOrd for CompletionString<'r>
[src]
impl<'r> PartialOrd for CompletionString<'r>
fn partial_cmp(&self, other: &CompletionString<'r>) -> Option<Ordering>
[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[src]
fn lt(&self, other: &Rhs) -> bool
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[src]
fn le(&self, other: &Rhs) -> bool
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[src]
fn gt(&self, other: &Rhs) -> bool
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[src]
fn ge(&self, other: &Rhs) -> bool
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]
impl<'r> Ord for CompletionString<'r>
fn cmp(&self, other: &CompletionString<'r>) -> Ordering
[src]
fn cmp(&self, other: &CompletionString<'r>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
Auto Trait Implementations
impl<'r> !Send for CompletionString<'r>
impl<'r> !Send for CompletionString<'r>
impl<'r> !Sync for CompletionString<'r>
impl<'r> !Sync for CompletionString<'r>