Struct lsp_types::InsertTextMode
source · pub struct InsertTextMode(/* private fields */);
Expand description
How whitespace and indentation is handled during completion item insertion.
@since 3.16.0
Implementations§
source§impl InsertTextMode
impl InsertTextMode
sourcepub const AS_IS: InsertTextMode = _
pub const AS_IS: InsertTextMode = _
The insertion or replace strings is taken as it is. If the value is multi line the lines below the cursor will be inserted using the indentation defined in the string value. The client will not apply any kind of adjustments to the string.
sourcepub const ADJUST_INDENTATION: InsertTextMode = _
pub const ADJUST_INDENTATION: InsertTextMode = _
The editor adjusts leading whitespace of new lines so that they match the indentation up to the cursor of the line for which the item is accepted.
Consider a line like this: <2tabs>
Trait Implementations§
source§impl Clone for InsertTextMode
impl Clone for InsertTextMode
source§fn clone(&self) -> InsertTextMode
fn clone(&self) -> InsertTextMode
Returns a copy of the value. Read more
1.0.0 · 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 InsertTextMode
impl Debug for InsertTextMode
source§impl<'de> Deserialize<'de> for InsertTextMode
impl<'de> Deserialize<'de> for InsertTextMode
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
source§impl PartialEq for InsertTextMode
impl PartialEq for InsertTextMode
source§impl Serialize for InsertTextMode
impl Serialize for InsertTextMode
source§impl TryFrom<&str> for InsertTextMode
impl TryFrom<&str> for InsertTextMode
impl Copy for InsertTextMode
impl Eq for InsertTextMode
impl StructuralPartialEq for InsertTextMode
Auto Trait Implementations§
impl Freeze for InsertTextMode
impl RefUnwindSafe for InsertTextMode
impl Send for InsertTextMode
impl Sync for InsertTextMode
impl Unpin for InsertTextMode
impl UnwindSafe for InsertTextMode
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.