MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / to_str_vector

Method to_str_vector

rust/src/config.rs:142–148  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

140
141impl 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()

Callers 3

isMethod · 0.80
newMethod · 0.80
sanitize_osFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected