pub trait Element {
// Required methods
fn width(&self) -> usize;
fn render(&self) -> impl DoubleEndedIterator<Item = RenderChunk<'_>>;
}Expand description
A particular widget that can be rendered to the TUI.
Required Methods§
Sourcefn render(&self) -> impl DoubleEndedIterator<Item = RenderChunk<'_>>
fn render(&self) -> impl DoubleEndedIterator<Item = RenderChunk<'_>>
Renders the element into a sequence of chunks.
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.