pub enum Index {
Unique,
Grouped {
by: Core,
param: VarId,
answers: Answers,
},
}Expand description
The index a lookup is answered from — the one difference between the two shapes recognised.
Variants§
Unique
map_get(m, k(x)): the collection is a Map whose own key is the join key, so the index is
the crate::plan::Op::MapValues arrangement that already exists and hash-consing shares
it with every other reader of the same collection. At most one row answers.
Grouped
filter_list(xs, lambda y: by(y) == k(x)): nothing keys xs by by, so the index is an
crate::plan::Op::ArrangeBy built for the purpose. Several rows share a key and the group
answers — either its rows or a question about them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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