Trait IRendererStorage

Source
pub trait IRendererStorage<B: Backend> {
    // Required methods
    fn has_component(&self, tagname: &str) -> bool;
    fn add_renderer<'b>(
        &'b mut self,
        tagname: &'b str,
        render: fn(&mut Frame<'_, B>),
    ) -> &'b mut Self;
    fn render(&self, tagname: &str, frame: &mut Frame<'_, B>);
}

Required Methods§

Source

fn has_component(&self, tagname: &str) -> bool

Source

fn add_renderer<'b>( &'b mut self, tagname: &'b str, render: fn(&mut Frame<'_, B>), ) -> &'b mut Self

Source

fn render(&self, tagname: &str, frame: &mut Frame<'_, B>)

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§