Function parse

Source
pub fn parse(input: impl AsRef<str>) -> Result<(String, ParseKind), SpecError>
Expand description

Parse the provided string and determine the output format. Since an unresolved version can be many things, such as an alias, version requirement, semver, or calver, we need to parse this manually to determine the correct output.