Trait diesel::expression::array_comparison::MaybeEmpty

source ·
pub trait MaybeEmpty {
    // Required method
    fn is_empty(&self) -> bool;
}
Expand description

A helper trait to check if the values clause of a 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>