pub struct WikiRenderer;Expand description
Renderer for wiki-style markdown output.
Implementations§
Source§impl WikiRenderer
impl WikiRenderer
Sourcepub fn render_index(&self, adrs: &[Adr], pages_url: Option<&str>) -> String
pub fn render_index(&self, adrs: &[Adr], pages_url: Option<&str>) -> String
Generates the main ADR index page.
Sourcepub fn render_by_status(&self, adrs: &[Adr]) -> String
pub fn render_by_status(&self, adrs: &[Adr]) -> String
Generates an ADR listing grouped by status.
Sourcepub fn render_by_category(&self, adrs: &[Adr]) -> String
pub fn render_by_category(&self, adrs: &[Adr]) -> String
Generates an ADR listing grouped by category.
Sourcepub fn render_timeline(&self, adrs: &[Adr]) -> String
pub fn render_timeline(&self, adrs: &[Adr]) -> String
Generates a chronological timeline of ADRs.
Sourcepub fn render_statistics(&self, stats: &AdrStatistics) -> String
pub fn render_statistics(&self, stats: &AdrStatistics) -> String
Generates a statistics summary page.
Trait Implementations§
Source§impl Clone for WikiRenderer
impl Clone for WikiRenderer
Source§fn clone(&self) -> WikiRenderer
fn clone(&self) -> WikiRenderer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WikiRenderer
impl Debug for WikiRenderer
Source§impl Default for WikiRenderer
impl Default for WikiRenderer
Source§fn default() -> WikiRenderer
fn default() -> WikiRenderer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WikiRenderer
impl RefUnwindSafe for WikiRenderer
impl Send for WikiRenderer
impl Sync for WikiRenderer
impl Unpin for WikiRenderer
impl UnwindSafe for WikiRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more