Trait mz_sql::plan::expr::AbstractExpr
source · pub trait AbstractExpr {
type Type: AbstractColumnType;
// Required method
fn typ(
&self,
outers: &[RelationType],
inner: &RelationType,
params: &BTreeMap<usize, ScalarType>,
) -> Self::Type;
}
Expand description
An expression whose type can be ascertained.
Abstracts over ScalarExpr
and CoercibleScalarExpr
.
Required Associated Types§
type Type: AbstractColumnType
Required Methods§
sourcefn typ(
&self,
outers: &[RelationType],
inner: &RelationType,
params: &BTreeMap<usize, ScalarType>,
) -> Self::Type
fn typ( &self, outers: &[RelationType], inner: &RelationType, params: &BTreeMap<usize, ScalarType>, ) -> Self::Type
Computes the type of the expression.