Skip to main content

parse_version

Function parse_version 

Source
pub fn parse_version(s: &str, loose: bool) -> Result<(Version, String), Error>
Expand description

Parse a version string, optionally accepting a loose leading prefix.

Returns the parsed version and the captured prefix (empty when strict or none).