Returns the same type difference, but ignoring nullability Returns `None` when _all_ of the differences are due to nullability
(self)
| 241 | /// |
| 242 | /// Returns `None` when _all_ of the differences are due to nullability |
| 243 | pub fn ignore_nullability(self) -> Option<Self> { |
| 244 | use ReprRelationTypeDifference::*; |
| 245 | |
| 246 | match self { |
| 247 | Length { .. } => Some(self), |
| 248 | Column { col, diff } => diff.ignore_nullability().map(|diff| Column { col, diff }), |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | impl ReprColumnTypeDifference { |