pub struct DeclSymbol {
pub name: String,
pub kind: &'static str,
pub span: SourceSpan,
}Expand description
One top-level declaration for an editor outline (whip lsp’s
textDocument/documentSymbol): its name, a coarse kind tag, and source span.
Fields§
§name: String§kind: &'static str§span: SourceSpanTrait Implementations§
Source§impl Clone for DeclSymbol
impl Clone for DeclSymbol
Source§fn clone(&self) -> DeclSymbol
fn clone(&self) -> DeclSymbol
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 DeclSymbol
impl Debug for DeclSymbol
impl Eq for DeclSymbol
Source§impl PartialEq for DeclSymbol
impl PartialEq for DeclSymbol
impl StructuralPartialEq for DeclSymbol
Auto Trait Implementations§
impl Freeze for DeclSymbol
impl RefUnwindSafe for DeclSymbol
impl Send for DeclSymbol
impl Sync for DeclSymbol
impl Unpin for DeclSymbol
impl UnsafeUnpin for DeclSymbol
impl UnwindSafe for DeclSymbol
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