pub fn release_name(&self) -> Option<&'static str> {
        #[cfg(target_os = "linux")]
        match self {
            OsMeta::Ubuntu { release, .. } => release.map(Into::into),
            OsMeta::Debian { release, .. } => release.map(Into::into),
            OsMeta::UnknownLinux { .. } => None,
        }

        #[cfg(not(target_os = "linux"))]
        match self {
            #[cfg(target_os = "macos")]
            OsMeta::MacOs { release, .. } => release.map(Into::into),
            #[cfg(target_os = "windows")]
            OsMeta::Windows { release, .. } => release.map(Into::into),
        }
    }
/// Returns the string representation of the operating system's release
/// version name, if one is known.
Returns the string representation of the operating system's release
version name, if one is known.
Returns the string representation of the operating system ' s release version name if one is known .
pub fn release_name(&self) -> Option<&'static str> {
        #[cfg(target_os = "linux")]
        match self {
            OsMeta::Ubuntu { release, .. } => release.map(Into::into),
            OsMeta::Debian { release, .. } => release.map(Into::into),
            OsMeta::UnknownLinux { .. } => None,
        }
        #[cfg(not(target_os = "linux"))]
        match self {
            #[cfg(target_os = "macos")]
            OsMeta::MacOs { release, .. } => release.map(Into::into),
            #[cfg(target_os = "windows")]
            OsMeta::Windows { release, .. } => release.map(Into::into),
        }
    }
pub fn release_name ( & self ) -> Option < & ' static str > { # [ cfg ( target_os " " ) ] match self { OsMeta :: Ubuntu { release , .. } => release . map ( Into :: into ) , OsMeta :: Debian { release , .. } => release . map ( Into :: into ) , OsMeta :: UnknownLinux { .. } => None , } # [ cfg ( not ( target_os " " ) ) ] match self { # [ cfg ( target_os " " ) ] OsMeta :: MacOs { release , .. } => release . map ( Into :: into ) , # [ cfg ( target_os " " ) ] OsMeta :: Windows { release , .. } => release . map ( Into :: into ) , } }
Returns the string representation of the operating system's release
version name, if one is known.
Returns the string representation of the operating system ' s release version name if one is known .
&self
&self