is_windows

Function is_windows 

Source
pub fn is_windows() -> bool
Expand description

Returns true if the operating system is Windows.

ยงExamples

let are_we_on_windows = jabba_lib::jos::is_windows();
Examples found in repository?
examples/os.rs (line 13)
3fn main() {
4    let op_sys = jos::get_operating_system_name();
5    println!("Your operating system is {:?}", op_sys);
6
7    println!(
8        "Is it Linux?   {}",
9        if jos::is_linux() { "yes" } else { "no" }
10    );
11    println!(
12        "Is it Windows? {}",
13        if jos::is_windows() { "yes" } else { "no" }
14    );
15}