pub enum Shape {
Paged,
Flat,
Pairs,
}Expand description
How to read a reply into rows. Guessing is not free here — reading
ZRANGE … WITHSCORES as a plain list silently treats every score as
a row key and reports a divergence on every sample — so the two
ambiguous shapes are told apart by the caller, not by a heuristic.
Variants§
Paged
[cursor, [key, sortval, key, sortval, …]] — kevy’s paged
index reply. Detected, not declared: a two-element array whose
second element is an array cannot be anything else here.
Flat
[a, b, c, …] — every element is a row key.
Pairs
[member, score, member, score, …] — WITHSCORES and friends.
Trait Implementations§
impl Copy for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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