Does `t`'s [`TypeCategory`] prefer `self`? This question can make more sense with the understanding that pseudotypes are never preferred.
(&self, t: &SqlScalarType)
| 772 | /// Does `t`'s [`TypeCategory`] prefer `self`? This question can make |
| 773 | /// more sense with the understanding that pseudotypes are never preferred. |
| 774 | fn is_preferred_by(&self, t: &SqlScalarType) -> bool { |
| 775 | if let Some(pt) = TypeCategory::from_type(t).preferred_type() { |
| 776 | *self == pt |
| 777 | } else { |
| 778 | false |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | /// Is `self` the [`ParamType`] corresponding to `t`'s [near match] value? |
| 783 | /// |
no test coverage detected