Skip to main content

is_method_path

Function is_method_path 

Source
pub fn is_method_path(kind: ItemKind, segs: &[String]) -> bool
Expand description

Detect associated method / inherent method path: Type::method where Type is UpperCamel and method starts lowercase (or kind forced as method via parse alias).

segs must already have the crate-root prefix stripped (see strip_crate_prefix_segments).

Narrow view of associated_item_path, kept because callers that only care about functions read better without matching on the family enum.