Function mz_sql::func::find_match

source ·
fn find_match<'a, R: Debug>(
    ecx: &ExprContext<'_>,
    types: &[Option<ScalarType>],
    impls: Vec<&'a FuncImpl<R>>
) -> Result<&'a FuncImpl<R>, usize>
Expand description

Finds an exact match based on the arguments, or, if no exact match, finds the best match available. Patterned after PostgreSQL’s type conversion matching algorithm.