Represents programming constructs like variables, classes, interfaces etc.
that appear in a document. Document symbols can be hierarchical and they have two ranges:
one that encloses its definition and one that points to its most interesting range,
e.g. the range of an identifier.
More detail for this symbol, e.g the signature of a function. If not provided the
name is used.
Indicates if this symbol is deprecated.
The range enclosing this symbol not including leading/trailing whitespace but everything else
like comments. This information is typically used to determine if the the clients cursor is
inside the symbol to reveal in the symbol in the UI.
The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
Must be contained by the the range
.
Children of this symbol, e.g. properties of a class.
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