A code lens represents a command that should be shown along with
source text, like the number of references, a way to run tests, etc.
A code lens is unresolved when no command is associated to it. For performance
reasons the creation of a code lens and resolving should be done in two stages.
The range in which this code lens is valid. Should only span a single line.
command: Option<Command>
The command this code lens represents.
A data entry field that is preserved on a code lens item between
a code lens and a code lens resolve request.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static