Create a new Sort expression with the opposite sort direction
(&self)
| 1032 | |
| 1033 | /// Create a new Sort expression with the opposite sort direction |
| 1034 | pub fn reverse(&self) -> Self { |
| 1035 | Self { |
| 1036 | expr: self.expr.clone(), |
| 1037 | asc: !self.asc, |
| 1038 | nulls_first: !self.nulls_first, |
| 1039 | } |
| 1040 | } |
| 1041 | |
| 1042 | /// Replaces the Sort expressions with `expr` |
| 1043 | pub fn with_expr(&self, expr: Expr) -> Self { |
no test coverage detected