(&self, input: &[ExprProperties])
| 437 | } |
| 438 | |
| 439 | fn output_ordering(&self, input: &[ExprProperties]) -> Result<SortProperties> { |
| 440 | // round preserves the order of the first argument |
| 441 | let value = &input[0]; |
| 442 | let precision = input.get(1); |
| 443 | |
| 444 | if precision |
| 445 | .map(|r| r.sort_properties.eq(&SortProperties::Singleton)) |
| 446 | .unwrap_or(true) |
| 447 | { |
| 448 | Ok(value.sort_properties) |
| 449 | } else { |
| 450 | Ok(SortProperties::Unordered) |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | fn documentation(&self) -> Option<&Documentation> { |
| 455 | self.doc() |