trait EagerUnaryFunc<'a> {
    type Input: DatumType<'a, EvalError>;
    type Output: DatumType<'a, EvalError>;

    fn call(&self, input: Self::Input) -> Self::Output;
    fn output_type(&self, input_type: ColumnType) -> ColumnType;

    fn propagates_nulls(&self) -> bool { ... }
    fn introduces_nulls(&self) -> bool { ... }
    fn preserves_uniqueness(&self) -> bool { ... }
    fn inverse(&self) -> Option<UnaryFunc> { ... }
}
Expand description

A description of an SQL unary function that operates on eagerly evaluated expressions

Required Associated Types

Required Methods

The output ColumnType of this function

Provided Methods

Whether this function will produce NULL on NULL input

Whether this function will produce NULL on non-NULL input

Whether this function preserves uniqueness

Implementors