(&self)
| 140 | |
| 141 | impl OS { |
| 142 | pub fn to_str_vector(&self) -> Vec<&str> { |
| 143 | match self { |
| 144 | WINDOWS => vec!["windows", "win"], |
| 145 | MACOS => vec!["macos", "mac"], |
| 146 | LINUX => vec!["linux", "gnu/linux"], |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | pub fn is(&self, os: &str) -> bool { |
| 151 | self.to_str_vector() |
no outgoing calls
no test coverage detected