DocGroup

Trait DocGroup 

Source
pub trait DocGroup:
    Database
    + HasQueryGroup<DocDatabase>
    + SemanticGroup
    + Upcast<dyn SemanticGroup> {
    // Required methods
    fn get_item_documentation(
        &self,
        item_id: DocumentableItemId,
    ) -> Option<String>;
    fn get_item_documentation_as_tokens(
        &self,
        item_id: DocumentableItemId,
    ) -> Option<Vec<DocumentationCommentToken>>;
    fn get_item_signature(&self, item_id: DocumentableItemId) -> Option<String>;
    fn get_item_signature_with_links(
        &self,
        item_id: DocumentableItemId,
    ) -> (Option<String>, Vec<LocationLink>);
}

Required Methods§

Source

fn get_item_documentation(&self, item_id: DocumentableItemId) -> Option<String>

Gets the documentation of an item.

Source

fn get_item_documentation_as_tokens( &self, item_id: DocumentableItemId, ) -> Option<Vec<DocumentationCommentToken>>

Gets the documentation of a certain as a vector of continuous tokens.

Source

fn get_item_signature(&self, item_id: DocumentableItemId) -> Option<String>

Gets the signature of an item (i.e., item without its body).

Gets the signature of an item and a list of LocationLinks to enable mapping signature slices on documentable items.

Trait Implementations§

Source§

impl DebugWithDb<dyn DocGroup> for CommentLinkToken

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &dyn DocGroup) -> Result

Source§

fn debug<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

fn into_debug<'me, 'db>(self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Implementors§

Source§

impl<DB> DocGroup for DB
where DB: SemanticGroup + Upcast<dyn SemanticGroup> + Database + HasQueryGroup<DocDatabase>,