Trait leetcode_api::render::Render
source · pub trait Render {
// Required method
fn to_tui_vec(&self) -> Vec<Line<'_>>;
// Provided methods
fn to_md_str(&self, _with_env: bool) -> String { ... }
fn render_to_terminal(&self) { ... }
fn to_rendered_str(&self, with_env: bool, col: u16, row: u16) -> String { ... }
}
Required Methods§
sourcefn to_tui_vec(&self) -> Vec<Line<'_>>
fn to_tui_vec(&self) -> Vec<Line<'_>>
for ratatui paragraph
Provided Methods§
sourcefn to_md_str(&self, _with_env: bool) -> String
fn to_md_str(&self, _with_env: bool) -> String
uniform treatment Question
detail to markdown String
_with_env
: forQuestion
whether displayQuestion
Compile Environment
sourcefn render_to_terminal(&self)
fn render_to_terminal(&self)
render to terminal