struct Outline<'doc> {
document: &'doc Document,
encoding: Encoding,
}Fields§
§document: &'doc Document§encoding: EncodingImplementations§
Source§impl Outline<'_>
impl Outline<'_>
fn item(&self, item: &Item) -> Option<DocumentSymbol>
Sourcefn element(&self, stmt: &Stmt, name: Option<&Ident>) -> Option<DocumentSymbol>
fn element(&self, stmt: &Stmt, name: Option<&Ident>) -> Option<DocumentSymbol>
A top-level element such as a window, shown by its name if it has one, or else by
its element, with its title as the detail.
fn declaration( &self, name: &Ident, kind: SymbolKind, span: Span, ) -> DocumentSymbol
fn symbol( &self, name: &str, name_span: Span, kind: SymbolKind, span: Span, ) -> DocumentSymbol
Auto Trait Implementations§
impl<'doc> Freeze for Outline<'doc>
impl<'doc> RefUnwindSafe for Outline<'doc>
impl<'doc> Send for Outline<'doc>
impl<'doc> Sync for Outline<'doc>
impl<'doc> Unpin for Outline<'doc>
impl<'doc> UnsafeUnpin for Outline<'doc>
impl<'doc> UnwindSafe for Outline<'doc>
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