[][src]Trait compressed_vec::filter::Predicate

pub trait Predicate<T: VectBase> {
    type Input;
    fn pred_matches_zero(input: &Self::Input) -> bool;
fn from_input(input: &Self::Input) -> Self; }

A Predicate is the value(s) for a filter to filter against

Associated Types

type Input

Loading content...

Required methods

fn pred_matches_zero(input: &Self::Input) -> bool

Returns true if the predicate matches null or zero values

fn from_input(input: &Self::Input) -> Self

Creates this predicate from a predicate input type

Loading content...

Implementors

impl<T: VectBase> Predicate<T> for MembershipPredicate<T>[src]

type Input = SmallVec<[T; 4]>

impl<T: VectBase> Predicate<T> for SingleValuePredicate<T>[src]

type Input = T

Loading content...