pub fn parse(string: &str) -> Result<Version, ParseError>Expand description
Parse a version string into a semantic version according to the specification outlined at https://semver.org/
The string may contain whitespaces only at the beginning and end (which will immediately be discarded).
Note that only the major, minor, and patch components of a semantic version
are currently supported; thus the string must be in the format
<MAJOR>.<MINOR>.<PATCH> (where MAJOR, MINOR, and PATCH are all
solely comprised of digits), and will otherwise fail to parse.