Skip to main content

extract_methods

Function extract_methods 

Source
pub(super) fn extract_methods(
    impl_item: &ItemImpl,
    impl_page: RdPage,
    declaration: &[TraitItemFn],
) -> Result<Vec<TraitMethod>>
Expand description

Extract all methods from a trait impl block as TraitMethod structs.

Parses each ImplItem::Fn to determine receiver type, mutability, #[miniextendr(...)] attributes (coerce, skip, r_name, defaults, etc.), and roxygen @param tags from doc comments. impl_page is whether the impl block renders a help page: the methods’ docs keep no links when it does not.