TableDirective

Enum TableDirective 

Source
pub enum TableDirective {
    Table {
        name: Option<String>,
        class: Option<String>,
        align: Option<HorizontalAlignment>,
        widths: Option<Vec<usize>>,
        width: Option<Length>,
    },
    CSVTable {
Show 15 fields name: Option<String>, class: Option<String>, widths: Option<TableColWidths>, width: Option<MetricType>, header_rows: Option<u32>, stub_columns: Option<u32>, header: Option<Vec<String>>, file: Option<String>, url: Option<String>, encoding: Option<String>, delim: Option<char>, quote: Option<char>, keepspace: Option<bool>, escape: Option<char>, align: Option<HorizontalAlignment>,
}, ListTable { widths: Option<TableColWidths>, width: Option<MetricType>, header_rows: Option<u32>, stub_columns: Option<u32>, align: Option<HorizontalAlignment>, }, }
Expand description

An enumeration of different table directive types.

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#tables

Variants§

§

Table

The “table” directive is used to associate a title with a table or specify options.

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#table

§

CSVTable

The “csv-table” directive is used to create a table from CSV (comma-separated values) data. CSV is a common data format generated by spreadsheet applications and commercial databases. The data may be internal (an integral part of the document) or external (a separate file).

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#id4

Fields

§header_rows: Option<u32>
§stub_columns: Option<u32>
§header: Option<Vec<String>>
§encoding: Option<String>
§delim: Option<char>
§quote: Option<char>
§keepspace: Option<bool>
§escape: Option<char>
§

ListTable

The “list-table” directive is used to create a table from data in a uniform two-level bullet list. “Uniform” means that each sublist (second-level list) must contain the same number of list items.

Details: https://docutils.sourceforge.io/docs/ref/rst/directives.html#list-table

Fields

§header_rows: Option<u32>
§stub_columns: Option<u32>

Trait Implementations§

Source§

impl Debug for TableDirective

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.