pub fn int_rscan(
    value: FilterExpression,
    search: FilterExpression
) -> FilterExpression
Expand description

Create expression that scans integer bits from right (least significant bit) to left (most significant bit), looking for a search bit value. When the search value is found, the index of that bit (where the most significant bit is index 0) is returned. If “search” is true, the scan will search for the bit value 1. If “search” is false it will search for bit value 0. Requires server version 5.6.0+.

// rscan(a, true) == 4
use aerospike::expressions::{int_val, int_bin, eq, int_rscan, bool_val};
eq(int_rscan(int_bin("a".to_string()), bool_val(true)), int_val(4));