Enum rustis::commands::BitFieldSubCommand
source · pub enum BitFieldSubCommand<E = &'static str, O = &'static str>where
E: SingleArg,
O: SingleArg,{
Get(BitFieldGetSubCommand<E, O>),
Set(E, O, u64),
IncrBy(E, O, i64),
Overflow(BitFieldOverflow),
}
Expand description
Sub-command for the bitfield
command
Variants§
Implementations§
source§impl<E, O> BitFieldSubCommand<E, O>where
E: SingleArg,
O: SingleArg,
impl<E, O> BitFieldSubCommand<E, O>where
E: SingleArg,
O: SingleArg,
sourcepub fn set(encoding: E, offset: O, value: u64) -> Self
pub fn set(encoding: E, offset: O, value: u64) -> Self
Set the specified bit field and returns its old value.
sourcepub fn incr_by(encoding: E, offset: O, increment: i64) -> Self
pub fn incr_by(encoding: E, offset: O, increment: i64) -> Self
Increments or decrements (if a negative increment is given) the specified bit field and returns the new value.