pub struct DocumentSymbol {
pub name: String,
pub detail: Option<String>,
pub kind: SymbolKind,
pub range: TextRange,
pub selection_range: TextRange,
pub children: Vec<DocumentSymbol>,
}Expand description
A (possibly nested) symbol in a document’s outline.
Fields§
§name: StringThe symbol name.
detail: Option<String>Optional detail (e.g. a signature).
kind: SymbolKindThe symbol kind.
range: TextRangeThe full range of the symbol (its whole declaration).
selection_range: TextRangeThe range of the name/selection within range.
children: Vec<DocumentSymbol>Nested symbols (members of a class, variants of an enum).
Trait Implementations§
Source§impl Clone for DocumentSymbol
impl Clone for DocumentSymbol
Source§fn clone(&self) -> DocumentSymbol
fn clone(&self) -> DocumentSymbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentSymbol
impl Debug for DocumentSymbol
Source§impl<'de> Deserialize<'de> for DocumentSymbol
impl<'de> Deserialize<'de> for DocumentSymbol
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
impl Eq for DocumentSymbol
Source§impl PartialEq for DocumentSymbol
impl PartialEq for DocumentSymbol
Source§fn eq(&self, other: &DocumentSymbol) -> bool
fn eq(&self, other: &DocumentSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DocumentSymbol
impl Serialize for DocumentSymbol
impl StructuralPartialEq for DocumentSymbol
Auto Trait Implementations§
impl Freeze for DocumentSymbol
impl RefUnwindSafe for DocumentSymbol
impl Send for DocumentSymbol
impl Sync for DocumentSymbol
impl Unpin for DocumentSymbol
impl UnsafeUnpin for DocumentSymbol
impl UnwindSafe for DocumentSymbol
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