pub trait BitmapCommands {
// Provided methods
fn bitcount<K>(
&mut self,
key: K,
range: BitRange,
) -> PreparedCommand<'_, Self, usize>
where Self: Sized,
K: Into<CommandArg> { ... }
fn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C,
) -> PreparedCommand<'_, Self, Vec<u64>>
where Self: Sized,
K: Into<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
C: ArgsOrCollection<BitFieldSubCommand<E, O>> { ... }
fn bitfield_readonly<K, C, E, O>(
&mut self,
key: K,
get_commands: C,
) -> PreparedCommand<'_, Self, Vec<u64>>
where Self: Sized,
K: Into<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
C: ArgsOrCollection<BitFieldGetSubCommand<E, O>> { ... }
fn bitop<D, K, KK>(
&mut self,
operation: BitOperation,
dest_key: D,
keys: KK,
) -> PreparedCommand<'_, Self, usize>
where Self: Sized,
D: Into<CommandArg>,
K: Into<CommandArg>,
KK: SingleArgOrCollection<K> { ... }
fn bitpos<K>(
&mut self,
key: K,
bit: u64,
range: BitRange,
) -> PreparedCommand<'_, Self, usize>
where Self: Sized,
K: Into<CommandArg> { ... }
fn getbit<K>(
&mut self,
key: K,
offset: u64,
) -> PreparedCommand<'_, Self, u64>
where Self: Sized,
K: Into<CommandArg> { ... }
fn setbit<K>(
&mut self,
key: K,
offset: u64,
value: u64,
) -> PreparedCommand<'_, Self, u64>
where Self: Sized,
K: Into<CommandArg> { ... }
}
Expand description
Provided Methods§
Sourcefn bitcount<K>(
&mut self,
key: K,
range: BitRange,
) -> PreparedCommand<'_, Self, usize>
fn bitcount<K>( &mut self, key: K, range: BitRange, ) -> PreparedCommand<'_, Self, usize>
Sourcefn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C,
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
C: ArgsOrCollection<BitFieldSubCommand<E, O>>,
fn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C,
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
C: ArgsOrCollection<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.