pub fn literal_constraints(&self, exprs: &[MirScalarExpr]) -> Option<Row> {
        if exprs.is_empty() {
            return None;
        }
        let mut row = Row::default();
        for expr in exprs {
            if let Some(literal) = self.literal_constraint(expr) {
                row.push(literal);
            } else {
                return None;
            }
        }
        Some(row)
    }
/// Determines if a sequence of scalar expressions must be equal to a literal row.
///
/// This method returns `None` on an empty `exprs`, which might be surprising, but
/// seems to line up with its callers' expectations of that being a non-constraint.
/// The caller knows if `exprs` is empty, and can modify their behavior appopriately.
/// if they would rather have a literal empty row.
Determines if a sequence of scalar expressions must be equal to a literal row.
This method returns `None` on an empty `exprs`, which might be surprising, but
seems to line up with its callers' expectations of that being a non-constraint.
The caller knows if `exprs` is empty, and can modify their behavior appopriately.
if they would rather have a literal empty row.
Determines if a sequence of scalar expressions must be equal to a literal row . This method returns ` None ` on an empty ` exprs ` which might be surprising but seems to line up with its callers ' expectations of that being a non - constraint . The caller knows if ` exprs ` is empty and can modify their behavior appopriately . if they would rather have a literal empty row .
pub fn literal_constraints(&self, exprs: &[MirScalarExpr]) -> Option<Row> {
        if exprs.is_empty() {
            return None;
        }
        let mut row = Row::default();
        for expr in exprs {
            if let Some(literal) = self.literal_constraint(expr) {
                row.push(literal);
            } else {
                return None;
            }
        }
        Some(row)
    }
pub fn literal_constraints ( & self , exprs : & [ MirScalarExpr ] ) -> Option < Row > { if exprs . is_empty ( ) { return None ; } let mut row = Row :: default ( ) ; for expr in exprs { if let Some ( literal ) = self . literal_constraint ( expr ) { row . push ( literal ) ; } else { return None ; } } Some ( row ) }
Determines if a sequence of scalar expressions must be equal to a literal row.
Determines if a sequence of scalar expressions must be equal to a literal row .
&self
exprs
&[MirScalarExpr]
&self
exprs
&[MirScalarExpr]