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).