Returns information about the operating system.
pub fn arch() -> String
Returns the architecture.
pub fn is_linux() -> Bool
Returns true if the platform is Linux.
pub fn is_macos() -> Bool
Returns true if the platform is macOS.
pub fn is_windows() -> Bool
Returns true if the platform is Windows.
pub fn os_type() -> types.OSType
Returns the OS type as an enum.
pub fn platform() -> String
Returns a string value for the platform.