Skip to main content

Members

Struct Members 

Source
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

Source

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.

Source

pub fn len(&self) -> usize

How many distinct values the list holds, for a caller that wants to say so.

Source

pub fn is_empty(&self) -> bool

Whether the list holds no value at all, which Members::of never builds.

Trait Implementations§

Source§

impl Debug for Members

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.