Function and
Source pub fn and(lhs: Expression, rhs: Expression) -> Expression
Expand description
Create a new Binary using the And operator.
ยงExample usage
let xs = BoolArray::from_iter(vec![true, false, true]);
let result = and(root(), lit(true)).evaluate(&xs.to_array()).unwrap();
assert_eq!(
result.to_bool().bit_buffer(),
BoolArray::from_iter(vec![true, false, true]).bit_buffer(),
);