(&self, input: &[ExprProperties])
| 152 | } |
| 153 | |
| 154 | fn output_ordering(&self, input: &[ExprProperties]) -> Result<SortProperties> { |
| 155 | // trunc preserves the order of the first argument |
| 156 | let value = &input[0]; |
| 157 | let precision = input.get(1); |
| 158 | |
| 159 | if precision |
| 160 | .map(|r| r.sort_properties.eq(&SortProperties::Singleton)) |
| 161 | .unwrap_or(true) |
| 162 | { |
| 163 | Ok(value.sort_properties) |
| 164 | } else { |
| 165 | Ok(SortProperties::Unordered) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | fn documentation(&self) -> Option<&Documentation> { |
| 170 | self.doc() |