pub struct Members { /* private fields */ }Expand description
The list of an IN, in the shape a loop can look a row up in.
Built once when the pipeline is built, because the list is literals the user wrote and cannot
change from chunk to chunk. This is the same idea as crate::prepare and is a separate type
only because an IN is not a function call by the time it reaches here.
Implementations§
Source§impl Members
impl Members
Sourcepub fn of(values: &[Value], negated: bool) -> Option<Self>
pub fn of(values: &[Value], negated: bool) -> Option<Self>
The list as a set, or None for a list this file will not fold.
None covers a list of fewer than two entries, which is not worth a set, a list holding a
kind of value that does not hash the way SQL compares, and a list mixing two kinds, which
the binder does not produce but which is cheaper to refuse than to reason about.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
How many distinct values the list holds, for a caller that wants to say so.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether the list holds no value at all, which Members::of never builds.