Trait leetcode_api::render::Render
source · pub trait Render {
// Required method
fn to_para_vec(&self) -> Vec<Line<'_>>;
// Provided methods
fn to_md_str(&self, _with_env: bool) -> String { ... }
fn render_with_mdcat(&self) { ... }
}
Required Methods§
sourcefn to_para_vec(&self) -> Vec<Line<'_>>
fn to_para_vec(&self) -> Vec<Line<'_>>
for ratatui’s paragraph widget
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_with_mdcat(&self)
fn render_with_mdcat(&self)
use mdcat
render question content