Skip to main content

get_platform

Function get_platform 

Source
pub fn get_platform() -> &'static str
Expand description

Get the current platform identifier.

Returns one of: “linux”, “macos”, “windows”, “freebsd”, etc.

This is a pure function with no side effects.