BoxedRenderable

Type Alias BoxedRenderable 

Source
pub type BoxedRenderable = Box<dyn Renderable + Send + Sync>;
Expand description

A boxed renderable for dynamic dispatch.

Aliased Type§

pub struct BoxedRenderable(/* private fields */);

Trait Implementations§

Source§

impl Renderable for BoxedRenderable

Source§

fn render(&self, context: &RenderContext) -> Vec<Segment>

Render this object to a sequence of segments. Read more
Source§

fn min_width(&self) -> usize

Get the minimum width required to render this object.
Source§

fn max_width(&self) -> usize

Get the maximum/natural width of this object.