(self, map_fn: TFn)
| 33 | } |
| 34 | |
| 35 | pub fn map<TFn: FnOnce(T) -> S, S>(self, map_fn: TFn) -> PartialResult<S> { |
| 36 | match self { |
| 37 | PartialResult::FullMatch(result) => PartialResult::FullMatch(map_fn(result)), |
| 38 | PartialResult::MatchMore(data) => PartialResult::MatchMore(data) |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /// |
no outgoing calls