pub fn detect() -> Platform {
        if cfg!(windows) {
            Platform::Windows
        } else if cfg!(target_os = "linux") {
            Platform::Linux
        } else if cfg!(target_os = "macos") {
            Platform::Darwin
        } else {
            Platform::Unknown
        }
    }
/// Detect the current platform.
///
/// Defaults to `Platform::Unknown` if the platform is unsupported by the Rood library.
Detect the current platform.
Defaults to `Platform::Unknown` if the platform is unsupported by the Rood library.
Detect the current platform . Defaults to ` Platform :: Unknown ` if the platform is unsupported by the Rood library .
pub fn detect() -> Platform {
        if cfg!(windows) {
            Platform::Windows
        } else if cfg!(target_os = "linux") {
            Platform::Linux
        } else if cfg!(target_os = "macos") {
            Platform::Darwin
        } else {
            Platform::Unknown
        }
    }
pub fn detect ( ) -> Platform { if cfg ! ( windows ) { Platform :: Windows } else if cfg ! ( target_os " " ) { Platform :: Linux } else if cfg ! ( target_os " " ) { Platform :: Darwin } else { Platform :: Unknown } }
Detect the current platform.
Detect the current platform .