Method
eval_result
(&self, result: Result<Datum<'b>, E>)
Source from the content-addressed store, hash-verified
| 845 | } |
| 846 | |
| 847 | fn eval_result<'b, E>(&self, result: Result<Datum<'b>, E>) -> ResultSpec<'a> { |
| 848 | match result { |
| 849 | Ok(Datum::Null) => ResultSpec { |
| 850 | nullable: true, |
| 851 | ..ResultSpec::nothing() |
| 852 | }, |
| 853 | Ok(d) => ResultSpec { |
| 854 | values: Values::just(self.arena.make_datum(|packer| packer.push(d))), |
| 855 | ..ResultSpec::nothing() |
| 856 | }, |
| 857 | Err(_) => ResultSpec { |
| 858 | fallible: true, |
| 859 | ..ResultSpec::nothing() |
| 860 | }, |
| 861 | } |
| 862 | } |
| 863 | |
| 864 | fn set_literal(expr: &mut MirScalarExpr, update: Result<Datum, EvalError>) { |
| 865 | match expr { |
Tested by
no test coverage detected