Trait EntityFilter

Source
pub trait EntityFilter:
    Default
    + Send
    + Sync {
    type Layout: LayoutFilter + GroupMatcher + Default + Send + Sync;
    type Dynamic: DynamicFilter;

    // Required methods
    fn layout_filter(&self) -> &Self::Layout;
    fn filters(&mut self) -> (&Self::Layout, &mut Self::Dynamic);
}
Expand description

A combination of a LayoutFilter and a DynamicFilter.

Required Associated Types§

Source

type Layout: LayoutFilter + GroupMatcher + Default + Send + Sync

The layout filter type.

Source

type Dynamic: DynamicFilter

The dynamic filter type.

Required Methods§

Source

fn layout_filter(&self) -> &Self::Layout

Returns a reference to the layout filter.

Source

fn filters(&mut self) -> (&Self::Layout, &mut Self::Dynamic)

Returns a tuple of the layout and dynamic filters.

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.

Implementors§