pub enum Op {
And,
Or,
Xor,
Not,
Diff,
Diff1,
AndOr,
One,
}Expand description
The operations BITOP takes.
The first four are Redis 2.6’s and the last four went in with 8.2. They all
answer a bitmap as long as the longest source, since a source that is
shorter reads as zeros past its end, and NOT is the only one that will not
take more than one source.
Variants§
And
Bits set in every source.
Or
Bits set in any source.
Xor
Bits set in an odd number of sources.
Not
The complement of the one source.
Diff
Bits set in the first source and in none of the others.
Diff1
Bits set in one or more of the others and not in the first.
AndOr
Bits set in the first source and in one or more of the others.
One
Bits set in exactly one source.
Implementations§
Trait Implementations§
impl Copy for Op
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more