pub struct CodeLens<C: Command, V> {
pub range: Range,
pub command: Option<C>,
pub data: V,
}Expand description
A code lens represents a command.
Fields§
§range: RangeThe range in which this code lens is valid. Should only span a single line.
command: Option<C>A server command as defined in TypeProvider::Command
data: VArbitrary data as defined in TypeProvider::CodeLensData
used to identify this code lens when Server::on_resolve_code_lens is invoked.
Trait Implementations§
Source§impl<'de, C: Command, V> Deserialize<'de> for CodeLens<C, V>where
V: Deserialize<'de>,
impl<'de, C: Command, V> Deserialize<'de> for CodeLens<C, V>where
V: Deserialize<'de>,
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
Auto Trait Implementations§
impl<C, V> Freeze for CodeLens<C, V>
impl<C, V> RefUnwindSafe for CodeLens<C, V>where
V: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, V> Send for CodeLens<C, V>
impl<C, V> Sync for CodeLens<C, V>
impl<C, V> Unpin for CodeLens<C, V>
impl<C, V> UnwindSafe for CodeLens<C, V>where
V: UnwindSafe,
C: UnwindSafe,
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