Skip to main content

GpuiComponentRender

Trait GpuiComponentRender 

Source
pub trait GpuiComponentRender<State: 'static>: 'static {
    const RENDERS: bool;

    // Required method
    fn new(entity: &Entity<State>) -> impl IntoElement;
}
Expand description

Renders a component UI value from a component state entity.

Required Associated Constants§

Source

const RENDERS: bool

Whether this contract renders a real component.

Required Methods§

Source

fn new(entity: &Entity<State>) -> impl IntoElement

Build a render component from the generated form field entity.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<State: 'static> GpuiComponentRender<State> for NoGpuiRenderComponent

Source§

const RENDERS: bool = false