Enum clang::completion::CompletionChunk
source · [−]pub enum CompletionChunk<'r> {
Show 21 variants
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>),
}
Expand description
A piece of a code completion string.
Variants
Colon
A colon (':'
).
Comma
A comma (','
).
Equals
An equals sign ('='
).
Semicolon
A semicolon (';'
).
LeftAngleBracket
A left angle bracket ('<'
).
RightAngleBracket
A right angle bracket ('>'
).
LeftBrace
A left brace ('{'
).
RightBrace
A right brace ('}'
).
LeftParenthesis
A left parentesis ('('
)).
RightParenthesis
A right parenthesis (')'
).
LeftSquareBracket
A left square bracket ('['
).
RightSquareBracket
A right square bracket (']'
).
HorizontalSpace(String)
Horizontal space (e.g., ' '
).
VerticalSpace(String)
Vertical space (e.g., '\n'
).
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.
Optional(CompletionString<'r>)
An optional piece that could be part of the template but is not required.
Implementations
sourceimpl<'r> CompletionChunk<'r>
impl<'r> CompletionChunk<'r>
Trait Implementations
sourceimpl<'r> Clone for CompletionChunk<'r>
impl<'r> Clone for CompletionChunk<'r>
sourcefn clone(&self) -> CompletionChunk<'r>
fn clone(&self) -> CompletionChunk<'r>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'r> Debug for CompletionChunk<'r>
impl<'r> Debug for CompletionChunk<'r>
sourceimpl<'r> PartialEq<CompletionChunk<'r>> for CompletionChunk<'r>
impl<'r> PartialEq<CompletionChunk<'r>> for CompletionChunk<'r>
sourcefn eq(&self, other: &CompletionChunk<'r>) -> bool
fn eq(&self, other: &CompletionChunk<'r>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CompletionChunk<'r>) -> bool
fn ne(&self, other: &CompletionChunk<'r>) -> bool
This method tests for !=
.
impl<'r> Eq for CompletionChunk<'r>
impl<'r> StructuralEq for CompletionChunk<'r>
impl<'r> StructuralPartialEq for CompletionChunk<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for CompletionChunk<'r>
impl<'r> !Send for CompletionChunk<'r>
impl<'r> !Sync for CompletionChunk<'r>
impl<'r> Unpin for CompletionChunk<'r>
impl<'r> UnwindSafe for CompletionChunk<'r>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more