Skip to main content

RenderBackend

Trait RenderBackend 

Source
pub trait RenderBackend: Any {
    // Required method
    fn as_any_mut(&mut self) -> &mut dyn Any;
}
Expand description

Opaque render backend trait with downcasting capability. Core crate defines this trait; UI crates downcast to concrete implementations. This enables true backend independence — core compiles without Ratatui.

Required Methods§

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Downcast to concrete backend type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§