Skip to main content

split_generic

Function split_generic 

Source
pub(crate) fn split_generic(generic: &str) -> (Option<&str>, &str)
Expand description

A generic = "..." value split into its package and the generic’s own name: "dplyr::dplyr_reconstruct" is (Some("dplyr"), "dplyr_reconstruct"), "print" is (None, "print"). The value must have passed parse_generic.