semver_parse_or_default

Function semver_parse_or_default 

Source
pub fn semver_parse_or_default(str: &str) -> Version
Expand description

Parse a provide slice and get a semver version in the form of .. If the input has only ., we expand to ..0 In case of failure, return 0.0.0