(s: &str)
| 81 | |
| 82 | impl GrepScope { |
| 83 | pub fn from_str(s: &str) -> Option<Self> { |
| 84 | match s.to_lowercase().as_str() { |
| 85 | "all" => Some(GrepScope::All), |
| 86 | "code" => Some(GrepScope::Code), |
| 87 | _ => None, |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /// Grep with default scope (matches anywhere). Convenience wrapper. |
nothing calls this directly
no outgoing calls
no test coverage detected