pub enum InsertText {
Plain(String),
Snippet(String),
}Expand description
What an accepted item inserts.
Variants§
Plain(String)
Inserted verbatim.
Snippet(String)
LSP placeholder syntax ($0, ${1:name}); parsed by the snippet engine
at accept time, never earlier — items are inert data until accepted.
Trait Implementations§
Source§impl Clone for InsertText
impl Clone for InsertText
Source§fn clone(&self) -> InsertText
fn clone(&self) -> InsertText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InsertText
impl Debug for InsertText
impl Eq for InsertText
Source§impl PartialEq for InsertText
impl PartialEq for InsertText
impl StructuralPartialEq for InsertText
Auto Trait Implementations§
impl Freeze for InsertText
impl RefUnwindSafe for InsertText
impl Send for InsertText
impl Sync for InsertText
impl Unpin for InsertText
impl UnsafeUnpin for InsertText
impl UnwindSafe for InsertText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.