Skip to main content

GpuiTableFilterShapeBuilder

Trait GpuiTableFilterShapeBuilder 

Source
pub trait GpuiTableFilterShapeBuilder<Shape: GpuiTableFilterShape> {
    // Required method
    fn build(
        self,
        title: impl Fn(&App) -> String + 'static,
        value: Shape::RawValue,
        on_change: impl Fn(Shape::RawValue, &mut Window, &mut App) + 'static,
        cx: &mut App,
    ) -> Entity<Shape::Component>;
}
Expand description

Configured builder for a table filter shape.

Generated code uses this contract when a field selects a filter shape with a configuration expression, such as FacetedFilter::<Status>.searchable(true).

Required Methods§

Source

fn build( self, title: impl Fn(&App) -> String + 'static, value: Shape::RawValue, on_change: impl Fn(Shape::RawValue, &mut Window, &mut App) + 'static, cx: &mut App, ) -> Entity<Shape::Component>

Build the configured filter entity.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§