pub(crate) fn split_pair<'a>(input: impl AsRef<str> + 'a, sep: char) -> Option<(String, String)> {
    let mut split = input.as_ref().split(sep);
    (
        split.next()?.into(),
        split.next().unwrap_or_default().into(),
    )
        .into()
}
/// Splits a string into a pair of strings based on a separator.
/// If the separator is not found, then full string is first element, second element is an empty string.
Splits a string into a pair of strings based on a separator.
If the separator is not found, then full string is first element, second element is an empty string.
Splits a string into a pair of strings based on a separator . If the separator is not found then full string is first element second element is an empty string .
pub(crate) fn split_pair<'a>(input: impl AsRef<str> + 'a, sep: char) -> Option<(String, String)> {
    let mut split = input.as_ref().split(sep);
    (
        split.next()?.into(),
        split.next().unwrap_or_default().into(),
    )
        .into()
}
pub ( crate ) fn split_pair < ' a > ( input : impl AsRef < str > + ' a , sep : char ) -> Option < ( String , String ) > { let mut split = input . as_ref ( ) . split ( sep ) ; ( split . next ( ) ? . into ( ) , split . next ( ) . unwrap_or_default ( ) . into ( ) , ) . into ( ) }
Splits a string into a pair of strings based on a separator.
Splits a string into a pair of strings based on a separator .
input
impl AsRef<str> + 'a
sep
char
input
impl AsRef<str> + 'a
sep
char