and

Function and 

Source
pub fn and(lhs: ExprRef, rhs: ExprRef) -> ExprRef
Expand description

Create a new BinaryExpr using the And operator.

ยงExample usage

let xs = BoolArray::from_iter(vec![true, false, true]);
let result = and(root(), lit(true)).evaluate(&Scope::new(xs.to_array())).unwrap();

assert_eq!(
    result.to_bool().boolean_buffer(),
    BoolArray::from_iter(vec![true, false, true]).boolean_buffer(),
);