Struct lsp_types::LinkedEditingRanges
source · pub struct LinkedEditingRanges {
pub ranges: Vec<Range>,
pub word_pattern: Option<String>,
}
Fields§
§ranges: Vec<Range>
A list of ranges that can be renamed together. The ranges must have identical length and contain identical text content. The ranges cannot overlap.
word_pattern: Option<String>
An optional word pattern (regular expression) that describes valid contents for the given ranges. If no pattern is provided, the client configuration’s word pattern will be used.
Trait Implementations§
source§impl Clone for LinkedEditingRanges
impl Clone for LinkedEditingRanges
source§fn clone(&self) -> LinkedEditingRanges
fn clone(&self) -> LinkedEditingRanges
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 LinkedEditingRanges
impl Debug for LinkedEditingRanges
source§impl<'de> Deserialize<'de> for LinkedEditingRanges
impl<'de> Deserialize<'de> for LinkedEditingRanges
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 LinkedEditingRanges
impl PartialEq for LinkedEditingRanges
source§fn eq(&self, other: &LinkedEditingRanges) -> bool
fn eq(&self, other: &LinkedEditingRanges) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LinkedEditingRanges
impl Serialize for LinkedEditingRanges
impl Eq for LinkedEditingRanges
impl StructuralEq for LinkedEditingRanges
impl StructuralPartialEq for LinkedEditingRanges
Auto Trait Implementations§
impl RefUnwindSafe for LinkedEditingRanges
impl Send for LinkedEditingRanges
impl Sync for LinkedEditingRanges
impl Unpin for LinkedEditingRanges
impl UnwindSafe for LinkedEditingRanges
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.