pub fn split_version<'a>(s: &'a str) -> Option<(&'a str, Version)> {
    // Check for extra '#' characters separately
    if s.split('#').len() > 2 {
        return None;
    }
    split_version_general(s, '#')
}
/// If s is of the form foo#bar, where bar is a valid version
/// number, return the prefix before the # and the version.
/// Otherwise, return None.
If s is of the form foo#bar, where bar is a valid version
number, return the prefix before the # and the version.
Otherwise, return None.
If s is of the form foo#bar where bar is a valid version number return the prefix before the # and the version . Otherwise return None .
pub fn split_version<'a>(s: &'a str) -> Option<(&'a str, Version)> {
    // Check for extra '#' characters separately
    if s.split('#').len() > 2 {
        return None;
    }
    split_version_general(s, '#')
}
pub fn split_version < ' a > ( s : & ' a str ) -> Option < ( & ' a str , Version ) > { // Check for extra '#' characters separately if s . split ( '#' ) . len ( ) > 2 { return None ; } split_version_general ( s , '#' ) }
If s is of the form foo#bar, where bar is a valid version
number, return the prefix before the # and the version.
If s is of the form foo#bar where bar is a valid version number return the prefix before the # and the version .
s
&'a str
s
&'a str