pub struct OutlineItem {
pub name: String,
pub kind: OutlineSymbol,
pub range: TextRange,
pub selection_range: TextRange,
pub children: Vec<OutlineItem>,
}Expand description
One node in the document-symbol outline tree.
Fields§
§name: StringDisplay name: a section title, an environment name, or a label key.
kind: OutlineSymbol§range: TextRangeThe full extent of the symbol (a section spans to where it closes).
selection_range: TextRangeThe identifier sub-range to highlight on selection (always ⊆ range).
children: Vec<OutlineItem>Trait Implementations§
Source§impl Clone for OutlineItem
impl Clone for OutlineItem
Source§fn clone(&self) -> OutlineItem
fn clone(&self) -> OutlineItem
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 OutlineItem
impl Debug for OutlineItem
impl Eq for OutlineItem
Source§impl PartialEq for OutlineItem
impl PartialEq for OutlineItem
impl StructuralPartialEq for OutlineItem
Auto Trait Implementations§
impl Freeze for OutlineItem
impl RefUnwindSafe for OutlineItem
impl Send for OutlineItem
impl Sync for OutlineItem
impl Unpin for OutlineItem
impl UnsafeUnpin for OutlineItem
impl UnwindSafe for OutlineItem
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