Skip to main content

Predicate

Trait Predicate 

Source
pub trait Predicate {
    // Required method
    fn test(&self, data: &[u8], reader: &Reader<'_>, obj_offset: usize) -> bool;
}
Expand description

A predicate tests a record in-place without allocation.

Required Methods§

Source

fn test(&self, data: &[u8], reader: &Reader<'_>, obj_offset: usize) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Predicate for AlwaysTrue

Source§

impl Predicate for Eq<'_, bool>

Source§

impl Predicate for Eq<'_, f64>

Source§

impl Predicate for Eq<'_, i64>

Source§

impl Predicate for Gt<'_, f64>

Source§

impl Predicate for Gt<'_, i64>

Source§

impl Predicate for Lt<'_, f64>

Source§

impl Predicate for Lt<'_, i64>

Source§

impl<'k> Predicate for Eq<'k, &str>

Source§

impl<A: Predicate, B: Predicate> Predicate for And<A, B>

Source§

impl<A: Predicate, B: Predicate> Predicate for Or<A, B>

Source§

impl<P: Predicate> Predicate for Not<P>