1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#![deny(missing_docs)]
#[derive(Debug)]
pub struct Size {
pub rows: u16,
pub cols: u16,
}
#[cfg(unix)]
mod nix;
#[cfg(unix)]
pub use self::nix::get;
#[cfg(windows)]
mod win;
#[cfg(windows)]
pub use self::win::get;
#[cfg(target_os = "redox")]
mod redox;
#[cfg(target_os = "redox")]
pub use self::redox::get;
#[cfg(test)]
mod tests {
use super::get;
#[test]
fn test_get() {
assert!(get().is_some())
}
}