Returns true if this result corresponds to a match.
(&self)
| 225 | impl<T> Result<T> { |
| 226 | /// Returns true if this result corresponds to a match. |
| 227 | pub fn is_match(&self) -> bool { |
| 228 | match *self { |
| 229 | Result::Match(_) => true, |
| 230 | Result::NoMatch(_) | Result::Quit => false, |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | /// Maps the given function onto T and returns the result. |
| 235 | /// |
no outgoing calls
no test coverage detected