Skip to main content

Render

Trait Render 

Source
pub trait Render {
    // Required method
    fn render(&self, out: &mut String, caps: &Capabilities, mode: ColorMode);
}

Required Methods§

Source

fn render(&self, out: &mut String, caps: &Capabilities, mode: ColorMode)

Render content into the output buffer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Render for String

Source§

fn render(&self, out: &mut String, caps: &Capabilities, mode: ColorMode)

Source§

impl Render for str

Source§

fn render(&self, out: &mut String, _caps: &Capabilities, _mode: ColorMode)

Implementors§