Enum clang::CompletionChunk
[−]
[src]
pub enum CompletionChunk<'r> { Optional(CompletionString<'r>), CurrentParameter(String), Informative(String), Placeholder(String), ResultType(String), Text(String), TypedText(String), Colon(String), Comma(String), Equals(String), Semicolon(String), LeftAngleBracket(String), RightAngleBracket(String), LeftBrace(String), RightBrace(String), LeftParenthesis(String), RightParenthesis(String), LeftSquareBracket(String), RightSquareBracket(String), HorizontalSpace(String), VerticalSpace(String), }
A piece of a code completion string.
Variants
Optional(CompletionString<'r>)
An optional piece that could be part of the template but is not required.
CurrentParameter(String)
Text that describes the current parameter when code completion was run on a function call, message send, or template specialization.
Informative(String)
Informative text that should be displayed but not inserted as part of the template.
Placeholder(String)
Text that should be replaced by the user.
ResultType(String)
Text that specifies the result type of the containing result.
Text(String)
Text that should be inserted.
TypedText(String)
Text that the user would be expected to type to get the containing code completion result.
Colon(String)
A colon (':'
).
Comma(String)
A comma (','
).
Equals(String)
An equals sign ('='
).
Semicolon(String)
A semicolon (';'
).
LeftAngleBracket(String)
A left angle bracket ('<'
).
RightAngleBracket(String)
A right angle bracket ('>'
).
LeftBrace(String)
A left brace ('{'
).
RightBrace(String)
A right brace ('}'
).
LeftParenthesis(String)
A left parentesis ('('
)).
RightParenthesis(String)
A right parenthesis (')'
).
LeftSquareBracket(String)
A left square bracket ('['
).
RightSquareBracket(String)
A right square bracket (']'
).
HorizontalSpace(String)
Horizontal space (e.g., ' '
).
VerticalSpace(String)
Vertical space (e.g., '\n'
).
Methods
impl<'r> CompletionChunk<'r>
[src]
fn get_text(&self) -> String
Returns the text associated with this completion chunk.
Panics
- this completion chunk is a
CompletionChunk::Optional
Trait Implementations
impl<'r> Eq for CompletionChunk<'r>
[src]
impl<'r> PartialEq for CompletionChunk<'r>
[src]
fn eq(&self, __arg_0: &CompletionChunk<'r>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompletionChunk<'r>) -> bool
This method tests for !=
.
impl<'r> Debug for CompletionChunk<'r>
[src]
impl<'r> Clone for CompletionChunk<'r>
[src]
fn clone(&self) -> CompletionChunk<'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