Trait Filterable

Source
pub trait Filterable<'a>: Sized {
    type Meta: Meta<'a, Self>;

    // Required method
    fn get_meta() -> Self::Meta;
}
Available on crate feature filter only.
Expand description

Something which can produce a description of how to filter it.

This is the main derivable trait from this file. A type implementing Filterable can provide an object, Meta, which describes its supported fields and their operators.

Required Associated Types§

Source

type Meta: Meta<'a, Self>

The type which can describe our fields and their operators.

Required Methods§

Source

fn get_meta() -> Self::Meta

Produce an instance of our Meta type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, T> Filterable<'a> for Option<T>
where T: Filterable<'a>,

Source§

type Meta = IterableMeta

Source§

fn get_meta() -> Self::Meta

Source§

impl<'a, T> Filterable<'a> for Arc<T>
where T: Filterable<'a>,

Source§

type Meta = ArcMeta

Source§

fn get_meta() -> Self::Meta

Source§

impl<'a, T> Filterable<'a> for Vec<T>
where T: Filterable<'a>,

Source§

type Meta = IterableMeta

Source§

fn get_meta() -> Self::Meta

Implementors§