Validates that the number of input elements are viable for `self`.
(&self, input_len: usize)
| 624 | |
| 625 | /// Validates that the number of input elements are viable for `self`. |
| 626 | fn validate_arg_len(&self, input_len: usize) -> bool { |
| 627 | match self { |
| 628 | Self::Exact(p) => p.len() == input_len, |
| 629 | Self::Variadic { leading, .. } => input_len > leading.len(), |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | /// Matches a `&[SqlScalarType]` derived from the user's function argument |
| 634 | /// against this `ParamList`'s permitted arguments. |