#[repr(i32)]pub enum InsertTextFormat {
PlainText = 1,
Snippet = 2,
}Expand description
Defines whether the insert text contains snippets.
Variants§
PlainText = 1
This completion item is plain text.
Snippet = 2
Warning: This variant should only be used if Server::snippet_support returns true;
This completion item is a snippet,
allowing it to define placeholders
using $1, $2 and ${3:foo}. $0 may optionally be used to define
the final tab stop, if omitted it will default to the end of the snippet.
Equal identifiers are linked.
Trait Implementations§
Source§impl Debug for InsertTextFormat
impl Debug for InsertTextFormat
Source§impl<'de> Deserialize<'de> for InsertTextFormat
impl<'de> Deserialize<'de> for InsertTextFormat
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InsertTextFormat
impl RefUnwindSafe for InsertTextFormat
impl Send for InsertTextFormat
impl Sync for InsertTextFormat
impl Unpin for InsertTextFormat
impl UnwindSafe for InsertTextFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more