Skip to main content

GpuiFormComponentShapePolicy

Trait GpuiFormComponentShapePolicy 

Source
pub trait GpuiFormComponentShapePolicy {
    type ValueStoragePolicy: ComponentValueStoragePolicy;
}
Expand description

Form storage policy for a GPUI component shape.

Implement this for shapes declared with component_shape_gpui::component_shape! or #[derive(component_shape_gpui::GpuiComponentShape)] when the shape should be consumable by #[derive(GpuiForm)].

Required Associated Types§

Source

type ValueStoragePolicy: ComponentValueStoragePolicy

Shape-owned value-holder storage policy.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§