risingwave_frontend::expr

Function cast_ok

source
pub fn cast_ok(
    source: &DataType,
    target: &DataType,
    allows: CastContext,
) -> bool
Expand description

Checks whether casting from source to target is ok in allows context.