Trait somedoc::model::visitor::TableVisitor[][src]

pub trait TableVisitor {
    fn start_table(
        &self,
        caption: &Option<Caption>,
        label: &Option<Label>
    ) -> Result<()> { ... }
fn start_table_header_row(&self) -> Result<()> { ... }
fn table_header_cell(
        &self,
        column_cell: &Column,
        column_idx: usize
    ) -> Result<()> { ... }
fn end_table_header_row(&self) -> Result<()> { ... }
fn start_table_row(&self, row: usize) -> Result<()> { ... }
fn start_table_cell(
        &self,
        column_idx: usize,
        label: &Option<Label>
    ) -> Result<()> { ... }
fn end_table_cell(
        &self,
        column_idx: usize,
        label: &Option<Label>
    ) -> Result<()> { ... }
fn end_table_row(&self, row: usize) -> Result<()> { ... }
fn end_table(
        &self,
        caption: &Option<Caption>,
        label: &Option<Label>
    ) -> Result<()> { ... }
fn inline_visitor(&self) -> Option<&dyn InlineVisitor> { ... } }

The visitor trait for all Table instances.

Provided methods

fn start_table(
    &self,
    caption: &Option<Caption>,
    label: &Option<Label>
) -> Result<()>
[src]

Called at the start of each Table instance, before any values.

fn start_table_header_row(&self) -> Result<()>[src]

Called at the start of each Table's header row, before any cells.

fn table_header_cell(
    &self,
    column_cell: &Column,
    column_idx: usize
) -> Result<()>
[src]

Visit each Column instance, with it's position.

fn end_table_header_row(&self) -> Result<()>[src]

Called at the end of each Table's header row, after any cells.

fn start_table_row(&self, row: usize) -> Result<()>[src]

Called at the start of each Table's body row, before any cells.

fn start_table_cell(
    &self,
    column_idx: usize,
    label: &Option<Label>
) -> Result<()>
[src]

Called at the start of each Cell instance, before any inner content.

fn end_table_cell(&self, column_idx: usize, label: &Option<Label>) -> Result<()>[src]

Called at the end of each Cell instance, after any inner content.

fn end_table_row(&self, row: usize) -> Result<()>[src]

Called at the end of each Table's body row, after any cells.

fn end_table(
    &self,
    caption: &Option<Caption>,
    label: &Option<Label>
) -> Result<()>
[src]

Called at the end of each Table instance, after any values.

fn inline_visitor(&self) -> Option<&dyn InlineVisitor>[src]

Return an implementation of the InlineVisitor trait, if one exists.

Loading content...

Implementors

impl<'a, W: Write> TableVisitor for HtmlWriter<'a, W>[src]

impl<'a, W: Write> TableVisitor for LatexWriter<'a, W>[src]

impl<'a, W: Write> TableVisitor for MarkdownWriter<'a, W>[src]

Loading content...