Skip to main content

namespace_split

Function namespace_split 

Source
pub fn namespace_split(term: &str) -> Option<(&str, &str)>
Expand description

Split a term into (namespace, local) at the final /, #, or :. The namespace includes its trailing separator; the local name is the rest. Returns None when the term has no separator — verbatim literals stay verbatim.