Trait ElementExt

Source
pub trait ElementExt: Sealed + Sized {
    // Required methods
    fn key(&self) -> &ElementKey;
    fn props_mut(&mut self) -> AnyProps<'_>;
    fn helper(&self) -> Box<dyn ComponentHelperExt>;
    fn render(&mut self) -> Result<()>;
    fn render_loop(&mut self) -> impl Future<Output = Result<()>>;
    fn fullscreen(&mut self) -> impl Future<Output = Result<()>>;
}

Required Methods§

Source

fn key(&self) -> &ElementKey

Source

fn props_mut(&mut self) -> AnyProps<'_>

Source

fn helper(&self) -> Box<dyn ComponentHelperExt>

Source

fn render(&mut self) -> Result<()>

Source

fn render_loop(&mut self) -> impl Future<Output = Result<()>>

Source

fn fullscreen(&mut self) -> impl Future<Output = Result<()>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> ElementExt for &mut AnyElement<'a>

Source§

impl<'a> ElementExt for AnyElement<'a>

Source§

impl<'a, T> ElementExt for &mut Element<'a, T>
where T: Component,

Source§

impl<'a, T> ElementExt for Element<'a, T>
where T: Component,