(token: &str)
| 78 | } |
| 79 | |
| 80 | fn parse_operator(token: &str) -> Option<Self> { |
| 81 | match token { |
| 82 | "&&" => Some(Self::And), |
| 83 | "||" => Some(Self::Or), |
| 84 | _ => None, |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | fn is_operator(token: &str) -> bool { |
| 89 | Self::parse_operator(token).is_some() |
nothing calls this directly
no outgoing calls
no test coverage detected