Enum stal::Set
[−]
[src]
pub enum Set { Key(Vec<u8>), Union(Vec<Set>), Inter(Vec<Set>), Diff(Vec<Set>), }
A set of values. It can be generated from a Redis key or from a set operation based on other sets.
Variants
Key(Vec<u8>)
A key
Union(Vec<Set>)
All the elements in any of the provided sets
Inter(Vec<Set>)
All the elements in all the sets
Diff(Vec<Set>)
All the elements in the first set that are not in the other sets
Methods
impl Set
[src]
fn into_ids(self) -> Stal
Gets the commands to get a list of ids for this set
fn ids(&self) -> Stal
Gets the commands to get a list of ids for this set
fn convert(&self, ids: &mut Vec<String>, ops: &mut Vec<Vec<Vec<u8>>>) -> Vec<u8>
Appends the operation to ops
and any temporary id created to ids
.
Returns the key representing the set.
Trait Implementations
impl Debug for Set
[src]
impl Clone for Set
[src]
fn clone(&self) -> Set
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more