Struct lsp2::FoldingRangeClientCapabilities
pub struct FoldingRangeClientCapabilities {
pub dynamic_registration: Option<bool>,
pub range_limit: Option<u32>,
pub line_folding_only: Option<bool>,
pub folding_range_kind: Option<FoldingRangeKindCapability>,
pub folding_range: Option<FoldingRangeCapability>,
}
Fields§
§dynamic_registration: Option<bool>
Whether implementation supports dynamic registration for folding range providers. If this is set to true
the client supports the new (FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)
return value for the corresponding server capability as well.
range_limit: Option<u32>
The maximum number of folding ranges that the client prefers to receive per document. The value serves as a hint, servers are free to follow the limit.
line_folding_only: Option<bool>
If set, the client signals that it only supports folding complete lines. If set, client will
ignore specified startCharacter
and endCharacter
properties in a FoldingRange.
folding_range_kind: Option<FoldingRangeKindCapability>
Specific options for the folding range kind.
@since 3.17.0
folding_range: Option<FoldingRangeCapability>
Specific options for the folding range.
@since 3.17.0
Trait Implementations§
§impl Clone for FoldingRangeClientCapabilities
impl Clone for FoldingRangeClientCapabilities
§fn clone(&self) -> FoldingRangeClientCapabilities
fn clone(&self) -> FoldingRangeClientCapabilities
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 FoldingRangeClientCapabilities
impl Debug for FoldingRangeClientCapabilities
§impl Default for FoldingRangeClientCapabilities
impl Default for FoldingRangeClientCapabilities
§fn default() -> FoldingRangeClientCapabilities
fn default() -> FoldingRangeClientCapabilities
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for FoldingRangeClientCapabilities
impl<'de> Deserialize<'de> for FoldingRangeClientCapabilities
§fn deserialize<__D>(
__deserializer: __D
) -> Result<FoldingRangeClientCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<FoldingRangeClientCapabilities, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<FoldingRangeClientCapabilities> for FoldingRangeClientCapabilities
impl PartialEq<FoldingRangeClientCapabilities> for FoldingRangeClientCapabilities
§fn eq(&self, other: &FoldingRangeClientCapabilities) -> bool
fn eq(&self, other: &FoldingRangeClientCapabilities) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for FoldingRangeClientCapabilities
impl Serialize for FoldingRangeClientCapabilities
§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 FoldingRangeClientCapabilities
impl StructuralEq for FoldingRangeClientCapabilities
impl StructuralPartialEq for FoldingRangeClientCapabilities
Auto Trait Implementations§
impl RefUnwindSafe for FoldingRangeClientCapabilities
impl Send for FoldingRangeClientCapabilities
impl Sync for FoldingRangeClientCapabilities
impl Unpin for FoldingRangeClientCapabilities
impl UnwindSafe for FoldingRangeClientCapabilities
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.