pub trait GpuiComponentShape: ComponentShapeMetadata {
type State: 'static;
type RenderComponent: GpuiComponentRender<Self::State>;
// Required method
fn new(
window: &mut Window,
cx: &mut Context<'_, Self::State>,
) -> Self::State;
}Expand description
Shape contract for GPUI components.
Required Associated Types§
Sourcetype RenderComponent: GpuiComponentRender<Self::State>
type RenderComponent: GpuiComponentRender<Self::State>
Shape-owned render component contract for prototyping output.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".