Evaluates the null ordering based on the given ascending flag. # Returns `true` if nulls should appear first. `false` if nulls should appear last.
(&self, asc: bool)
| 184 | /// * `true` if nulls should appear first. |
| 185 | /// * `false` if nulls should appear last. |
| 186 | pub fn nulls_first(&self, asc: bool) -> bool { |
| 187 | match self { |
| 188 | Self::NullsMax => !asc, |
| 189 | Self::NullsMin => asc, |
| 190 | Self::NullsFirst => true, |
| 191 | Self::NullsLast => false, |
| 192 | } |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | impl FromStr for NullOrdering { |
no outgoing calls
no test coverage detected