Enum clang::completion::CompletionChunk [] [src]

pub enum CompletionChunk<'r> {
    Colon,
    Comma,
    Equals,
    Semicolon,
    LeftAngleBracket,
    RightAngleBracket,
    LeftBrace,
    RightBrace,
    LeftParenthesis,
    RightParenthesis,
    LeftSquareBracket,
    RightSquareBracket,
    HorizontalSpace(String),
    VerticalSpace(String),
    CurrentParameter(String),
    Informative(String),
    Placeholder(String),
    ResultType(String),
    Text(String),
    TypedText(String),
    Optional(CompletionString<'r>),
}

A piece of a code completion string.

Variants

A colon (':').

A comma (',').

An equals sign ('=').

A semicolon (';').

A left angle bracket ('<').

A right angle bracket ('>').

A left brace ('{').

A right brace ('}').

A left parentesis ('(')).

A right parenthesis (')').

A left square bracket ('[').

A right square bracket (']').

Horizontal space (e.g., ' ').

Vertical space (e.g., '\n').

Text that describes the current parameter when code completion was run on a function call, message send, or template specialization.

Informative text that should be displayed but not inserted as part of the template.

Text that should be replaced by the user.

Text that specifies the result type of the containing result.

Text that should be inserted.

Text that the user would be expected to type to get the containing code completion result.

An optional piece that could be part of the template but is not required.

Methods

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

[src]

Returns the text associated with this completion chunk if this chunk is not optional.

[src]

Returns whether this completion chunk is optional.

Trait Implementations

impl<'r> Clone for CompletionChunk<'r>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'r> Debug for CompletionChunk<'r>
[src]

[src]

Formats the value using the given formatter.

impl<'r> PartialEq for CompletionChunk<'r>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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