Trait diesel::expression::array_comparison::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>