pub struct NodeLabel {
pub name: String,
pub detail: Option<String>,
pub kind: SymbolKind,
}Expand description
A display name (and optional detail) for one tree node — what
SimpleLanguage::label_fn returns to power the outline view.
Fields§
§name: StringThe symbol’s name.
detail: Option<String>Optional detail shown next to the name (e.g. a parameter list).
kind: SymbolKindThe outline kind (defaults to SymbolKind::FUNCTION — override it
for languages whose named things are rules, sections, selectors,
recipes, …).
Implementations§
Trait Implementations§
impl Eq for NodeLabel
impl StructuralPartialEq for NodeLabel
Auto Trait Implementations§
impl Freeze for NodeLabel
impl RefUnwindSafe for NodeLabel
impl Send for NodeLabel
impl Sync for NodeLabel
impl Unpin for NodeLabel
impl UnsafeUnpin for NodeLabel
impl UnwindSafe for NodeLabel
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