Skip to main content

split_item_path

Function split_item_path 

pub fn split_item_path(path: &str) -> Option<(&'static Unit, &str)>
Expand description

The unit a dotted item path lies in, and the rest of the path relative to it (empty for the unit itself). Unit names contain dots, so the longest unit name that is a whole-segment prefix wins: bynk.cloudflare.Kv is in bynk.cloudflare, not in bynk.