ide_db::documentation

Trait HasDocs

Source
pub trait HasDocs: HasAttrs {
    // Required methods
    fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>;
    fn resolve_doc_path(
        self,
        db: &dyn HirDatabase,
        link: &str,
        ns: Option<Namespace>,
    ) -> Option<DocLinkDef>;
}

Required Methods§

Source

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Implementations on Foreign Types§

Source§

impl HasDocs for Adt

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for AssocItem

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Const

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Crate

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Enum

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for ExternCrateDecl

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Field

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Function

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Impl

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Macro

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Module

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Static

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Struct

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Trait

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for TraitAlias

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for TypeAlias

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Union

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Source§

impl HasDocs for Variant

Source§

fn docs(self, db: &dyn HirDatabase) -> Option<Documentation>

Source§

fn resolve_doc_path( self, db: &dyn HirDatabase, link: &str, ns: Option<Namespace>, ) -> Option<DocLinkDef>

Implementors§