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
#[cfg(any(not(target_os = "windows"), doc))]
use heim_common::units::Information;
#[cfg(any(target_os = "linux", doc))]
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
pub mod linux;
#[cfg(any(target_os = "macos", doc))]
#[cfg_attr(docsrs, doc(cfg(target_os = "macos")))]
pub mod macos;
#[cfg(any(not(target_os = "windows"), doc))]
#[cfg_attr(docsrs, doc(cfg(not(target_os = "windows"))))]
pub trait SwapExt {
fn sin(&self) -> Option<Information>;
fn sout(&self) -> Option<Information>;
}
#[cfg(not(target_os = "windows"))]
impl SwapExt for crate::Swap {
fn sin(&self) -> Option<Information> {
self.as_ref().sin()
}
fn sout(&self) -> Option<Information> {
self.as_ref().sout()
}
}