pub fn as_semver(&self) -> Option<semver::Version> {
        let version_str = self.as_str()?;
        semver::Version::parse(version_str)
            .ok()
            .or_else(|| AttributeValue::parse_semver_loose(version_str))
    }
/// Attempt to parse a string attribute into a semver version.
///
/// It will return None if it cannot parse it, or for non-string attributes.
Attempt to parse a string attribute into a semver version.
It will return None if it cannot parse it, or for non-string attributes.
Attempt to parse a string attribute into a semver version . It will return None if it cannot parse it or for non - string attributes .
pub fn as_semver(&self) -> Option<semver::Version> {
        let version_str = self.as_str()?;
        semver::Version::parse(version_str)
            .ok()
            .or_else(|| AttributeValue::parse_semver_loose(version_str))
    }
pub fn as_semver ( & self ) -> Option < semver :: Version > { let version_str = self . as_str ( ) ? ; semver :: Version :: parse ( version_str ) . ok ( ) . or_else ( | | AttributeValue :: parse_semver_loose ( version_str ) ) }
Attempt to parse a string attribute into a semver version.
Attempt to parse a string attribute into a semver version .
&self
&self