Struct clang::CompletionString [] [src]

pub struct CompletionString<'r> {
    // some fields omitted
}

A semantic string that describes a code completion result.

Methods

impl<'r> CompletionString<'r>
[src]

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_chunks(&self) -> Vec<CompletionChunk>

Returns the chunks 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_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_typed_text(&self) -> Option<String>

Returns the text of the typed text chunk for this completion string, if any.

Trait Implementations

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> Copy for CompletionString<'r>
[src]

impl<'r> Eq for CompletionString<'r>
[src]

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

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> 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> Debug for CompletionString<'r>
[src]

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

Formats the value using the given formatter.