pub fn new<V: Into<Version>>(version: V) -> Option<Self> {
        let Version { major, minor, .. } = version.into();
        match (major, minor) {
            (06, 1) => Some(OsRelease::Windows7),
            (06, 2) => Some(OsRelease::Windows8),
            (06, 3) => Some(OsRelease::Windows8_1),
            (10, 0) => Some(OsRelease::Windows10),
            _ => None
        }
    }
/// Returns the corresponding release for the Windows version number.
Returns the corresponding release for the Windows version number.
Returns the corresponding release for the Windows version number .
pub fn new<V: Into<Version>>(version: V) -> Option<Self> {
        let Version { major, minor, .. } = version.into();
        match (major, minor) {
            (06, 1) => Some(OsRelease::Windows7),
            (06, 2) => Some(OsRelease::Windows8),
            (06, 3) => Some(OsRelease::Windows8_1),
            (10, 0) => Some(OsRelease::Windows10),
            _ => None
        }
    }
pub fn new < V : Into < Version > > ( version : V ) -> Option < Self > { let Version { major , minor , .. } = version . into ( ) ; match ( major , minor ) { ( 06 , 1 ) => Some ( OsRelease :: Windows7 ) , ( 06 , 2 ) => Some ( OsRelease :: Windows8 ) , ( 06 , 3 ) => Some ( OsRelease :: Windows8_1 ) , ( 10 , 0 ) => Some ( OsRelease :: Windows10 ) , _ => None } }
Returns the corresponding release for the Windows version number.
Returns the corresponding release for the Windows version number .
version
V
version
V