Struct lsp2::FoldingRangeCapability
pub struct FoldingRangeCapability {
pub collapsed_text: Option<bool>,
}
Fields§
§collapsed_text: Option<bool>
If set, the client signals that it supports setting collapsedText on folding ranges to display custom labels instead of the default text.
@since 3.17.0
Trait Implementations§
§impl Clone for FoldingRangeCapability
impl Clone for FoldingRangeCapability
§fn clone(&self) -> FoldingRangeCapability
fn clone(&self) -> FoldingRangeCapability
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 more§impl Debug for FoldingRangeCapability
impl Debug for FoldingRangeCapability
§impl Default for FoldingRangeCapability
impl Default for FoldingRangeCapability
§fn default() -> FoldingRangeCapability
fn default() -> FoldingRangeCapability
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for FoldingRangeCapability
impl<'de> Deserialize<'de> for FoldingRangeCapability
§fn deserialize<__D>(
__deserializer: __D
) -> Result<FoldingRangeCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<FoldingRangeCapability, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<FoldingRangeCapability> for FoldingRangeCapability
impl PartialEq<FoldingRangeCapability> for FoldingRangeCapability
§fn eq(&self, other: &FoldingRangeCapability) -> bool
fn eq(&self, other: &FoldingRangeCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for FoldingRangeCapability
impl Serialize for FoldingRangeCapability
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for FoldingRangeCapability
impl StructuralEq for FoldingRangeCapability
impl StructuralPartialEq for FoldingRangeCapability
Auto Trait Implementations§
impl RefUnwindSafe for FoldingRangeCapability
impl Send for FoldingRangeCapability
impl Sync for FoldingRangeCapability
impl Unpin for FoldingRangeCapability
impl UnwindSafe for FoldingRangeCapability
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.