pub fn new<V: Into<Version>>(version: V) -> Option<Self> {
        let Version { major, minor, .. } = version.into();
        match (major, minor) {
            (10, MIN_MINOR_VERSION..=MAX_MINOR_VERSION) => unsafe {
                Some(mem::transmute((minor - MIN_MINOR_VERSION) as u8))
            },
            _ => None,
        }
    }
/// Returns the corresponding release for the macOS version number.
Returns the corresponding release for the macOS version number.
Returns the corresponding release for the macOS version number .
pub fn new<V: Into<Version>>(version: V) -> Option<Self> {
        let Version { major, minor, .. } = version.into();
        match (major, minor) {
            (10, MIN_MINOR_VERSION..=MAX_MINOR_VERSION) => unsafe {
                Some(mem::transmute((minor - MIN_MINOR_VERSION) as u8))
            },
            _ => None,
        }
    }
pub fn new < V : Into < Version > > ( version : V ) -> Option < Self > { let Version { major , minor , .. } = version . into ( ) ; match ( major , minor ) { ( 10 , MIN_MINOR_VERSION ..= MAX_MINOR_VERSION ) => unsafe { Some ( mem :: transmute ( ( minor - MIN_MINOR_VERSION ) as u8 ) ) } , _ => None , } }
Returns the corresponding release for the macOS version number.
Returns the corresponding release for the macOS version number .
version
V
version
V