(datums: I)
| 54 | // see https://timely.zulipchat.com/#narrow/stream/186635-engineering/topic/additional.20work/near/163507435 |
| 55 | |
| 56 | fn max_string<'a, I>(datums: I) -> Datum<'a> |
| 57 | where |
| 58 | I: IntoIterator<Item = Datum<'a>>, |
| 59 | { |
| 60 | match datums |
| 61 | .into_iter() |
| 62 | .filter(|d| !d.is_null()) |
| 63 | .max_by(|a, b| a.unwrap_str().cmp(b.unwrap_str())) |
| 64 | { |
| 65 | Some(datum) => datum, |
| 66 | None => Datum::Null, |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | fn max_datum<'a, I, DatumType>(datums: I) -> Datum<'a> |
| 71 | where |
no test coverage detected