Function os_type::current_platform [−][src]
pub fn current_platform() -> OSInformation
Returns the current operating system type
#Example
use os_type; let os = os_type::current_platform(); println!("Type: {:?}", os.os_type); println!("Version: {}", os.version);