MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / all_eq

Function all_eq

src/expr/src/interpret.rs:1371–1376  ·  view source on GitHub ↗
(
            iter: impl IntoIterator<Item = &'a ReprColumnType>,
            other: &ReprScalarType,
        )

Source from the content-addressed store, hash-verified

1369 fn variadic_typecheck(func: &VariadicFunc, args: &[ReprColumnType]) -> bool {
1370 use VariadicFunc::*;
1371 fn all_eq<'a>(
1372 iter: impl IntoIterator<Item = &'a ReprColumnType>,
1373 other: &ReprScalarType,
1374 ) -> bool {
1375 iter.into_iter().all(|t| t.scalar_type == *other)
1376 }
1377 match func {
1378 Coalesce(_) | Greatest(_) | Least(_) => match args {
1379 [] => true,

Callers 1

variadic_typecheckFunction · 0.85

Calls 2

allMethod · 0.80
into_iterMethod · 0.45

Tested by

no test coverage detected