pub fn split_to_twople(
    s: &str,
    split: char
) -> Result<(String, String), SplitError>
Expand description

Given string and a character. Attempt to split the string at that character into 2 distinct parts.

§Example

use wagon_utils::split_to_twople;

let s = "1:2";
assert_eq!(Ok(("1".to_string(), "2".to_string())), split_to_twople(s, ':'));

§Errors

Returns a SplitError when the function is unable to split the string on the split character.