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§
Sourcefn get_item_documentation(&self, item_id: DocumentableItemId) -> Option<String>
fn get_item_documentation(&self, item_id: DocumentableItemId) -> Option<String>
Gets the documentation of an item.
Sourcefn get_item_documentation_as_tokens(
&self,
item_id: DocumentableItemId,
) -> Option<Vec<DocumentationCommentToken>>
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.
Sourcefn get_item_signature(&self, item_id: DocumentableItemId) -> Option<String>
fn get_item_signature(&self, item_id: DocumentableItemId) -> Option<String>
Gets the signature of an item (i.e., item without its body).
Sourcefn get_item_signature_with_links(
&self,
item_id: DocumentableItemId,
) -> (Option<String>, Vec<LocationLink>)
fn get_item_signature_with_links( &self, item_id: DocumentableItemId, ) -> (Option<String>, Vec<LocationLink>)
Gets the signature of an item and a list of LocationLink
s to enable mapping
signature slices on documentable items.