[−][src]Enum clang::completion::CompletionChunk
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 (']'
).
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
impl<'r> CompletionChunk<'r>
[src]
pub fn get_text(&self) -> Option<String>
[src]
Returns the text associated with this completion chunk if this chunk is not optional.
pub fn is_optional(&self) -> bool
[src]
Returns whether this completion chunk is optional.
Trait Implementations
impl<'r> Clone for CompletionChunk<'r>
[src]
fn clone(&self) -> CompletionChunk<'r>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'r> Debug for CompletionChunk<'r>
[src]
impl<'r> Eq for CompletionChunk<'r>
[src]
impl<'r> PartialEq<CompletionChunk<'r>> for CompletionChunk<'r>
[src]
fn eq(&self, other: &CompletionChunk<'r>) -> bool
[src]
fn ne(&self, other: &CompletionChunk<'r>) -> bool
[src]
impl<'r> StructuralEq for CompletionChunk<'r>
[src]
impl<'r> StructuralPartialEq for CompletionChunk<'r>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,