Trait gpui2::Render

source ·
pub trait Render: 'static + Sized {
    type Element: Element + 'static;

    // Required method
    fn render(&mut self, cx: &mut ViewContext<'_, Self>) -> Self::Element;
}

Required Associated Types§

source

type Element: Element + 'static

Required Methods§

source

fn render(&mut self, cx: &mut ViewContext<'_, Self>) -> Self::Element

Implementors§

source§

impl Render for ExternalPaths

§

type Element = Div

source§

impl<T, E> Render for Twhere T: 'static + FnMut(&mut WindowContext<'_>) -> E, E: 'static + Send + Element,

§

type Element = E