pub trait BitmapCommands<'a> {
// Provided methods
fn bitcount<K>(
self,
key: K,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
where Self: Sized,
K: SingleArg { ... }
fn bitfield<K, C, E, O>(
self,
key: K,
sub_commands: C,
) -> PreparedCommand<'a, Self, Vec<u64>>
where Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldSubCommand<E, O>> { ... }
fn bitfield_readonly<K, C, E, O>(
self,
key: K,
get_commands: C,
) -> PreparedCommand<'a, Self, Vec<u64>>
where Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldGetSubCommand<E, O>> { ... }
fn bitop<D, K, KK>(
self,
operation: BitOperation,
dest_key: D,
keys: KK,
) -> PreparedCommand<'a, Self, usize>
where Self: Sized,
D: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K> { ... }
fn bitpos<K>(
self,
key: K,
bit: u64,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
where Self: Sized,
K: SingleArg { ... }
fn getbit<K>(self, key: K, offset: u64) -> PreparedCommand<'a, Self, u64>
where Self: Sized,
K: SingleArg { ... }
fn setbit<K>(
self,
key: K,
offset: u64,
value: u64,
) -> PreparedCommand<'a, Self, u64>
where Self: Sized,
K: SingleArg { ... }
}
Expand description
Provided Methods§
Sourcefn bitcount<K>(
self,
key: K,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
fn bitcount<K>( self, key: K, range: BitRange, ) -> PreparedCommand<'a, Self, usize>
Sourcefn bitfield<K, C, E, O>(
self,
key: K,
sub_commands: C,
) -> PreparedCommand<'a, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldSubCommand<E, O>>,
fn bitfield<K, C, E, O>(
self,
key: K,
sub_commands: C,
) -> PreparedCommand<'a, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldSubCommand<E, O>>,
The command treats a Redis string as an array of bits, and is capable of addressing specific integer fields of varying bit widths and arbitrary non (necessary) aligned offset.
§Return
A collection with each entry being the corresponding result of the sub command given at the same position. OVERFLOW subcommands don’t count as generating a reply.