diesel::expression::array_comparison

Trait MaybeEmpty

Source
pub trait MaybeEmpty {
    // Required method
    fn is_empty(&self) -> bool;
}
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.
Expand description

A helper trait to check if the values clause of an In or NotIn query dsl node is empty or not

Required Methods§

Source

fn is_empty(&self) -> bool

Returns true if self represents an empty collection Otherwise false is returned.

Implementors§

Source§

impl<ST, I> MaybeEmpty for Many<ST, I>