Trait BlockFormat

Source
pub trait BlockFormat<TSource>
where TSource: ArgumentType,
{
Show 27 methods // Required methods fn heading<S>(&self, text: S, depth: usize) -> String where S: AsRef<str>; fn pseudo_heading<S>(&self, text: S) -> String where S: AsRef<str>; fn heading_with_id<S1, S2>(&self, text: S1, depth: usize, id: S2) -> String where S1: AsRef<str>, S2: AsRef<str>; fn pseudo_heading_with_id<S1, S2>(&self, text: S1, id: S2) -> String where S1: AsRef<str>, S2: AsRef<str>; fn paragraph<S>(&self, text: S) -> String where S: AsRef<str>; fn quote<S>(&self, text: S) -> String where S: AsRef<str>; fn verbatim<S>(&self, content: S) -> String where S: AsRef<str>; fn indented_verbatim<S>(&self, content: S) -> String where S: AsRef<str>; fn example<S>(&self, content: S) -> String where S: AsRef<str>; fn export<S>(&self, content: S) -> String where S: AsRef<str>; fn center<S>(&self, content: S) -> String where S: AsRef<str>; fn comment<S>(&self, text: S) -> String where S: AsRef<str>; fn line_comment<S>(&self, text: S) -> String where S: AsRef<str>; fn figure_with<S1, S2, S3, S4>( &self, id: S1, caption: S2, file_name: S3, result_of: Option<S4>, ) -> String where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>, S4: AsRef<str>; fn caption<S>(&self, text: S) -> String where S: AsRef<str>; fn results_of<S>(&self, id: S) -> String where S: AsRef<str>; fn source<S1, S2>( &self, language: S1, src: S2, arguments: TSource, ) -> String where S1: AsRef<str>, S2: AsRef<str>; fn source_with<S1, S2, S3, S4>( &self, language: S1, src: S2, arguments: TSource, id: S3, caption: S4, ) -> String where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>, S4: AsRef<str>; fn inline_source<S1, S2>( &self, language: S1, src: S2, arguments: TSource, ) -> String where S1: AsRef<str>, S2: AsRef<str>; fn ordered_list(&self, items: &[String], indentation: usize) -> String; fn unordered_list(&self, items: &[String], indentation: usize) -> String; fn definition_list(&self, items: &HashMap<String, String>) -> String; fn table_with<S1, S2, S3>( &self, data: &[Vec<S1>], header_row: bool, id: S2, caption: S3, ) -> String where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>; fn table_header_row<S>(&self, columns: &[S], add_hline: bool) -> String where S: AsRef<str>; fn table_hline(&self, widths: &[usize]) -> String; fn table_row<S>(&self, values: &[S]) -> String where S: AsRef<str>; // Provided method fn table<S>(&self, data: &[Vec<S>], header_row: bool) -> String where S: AsRef<str> { ... }
}

Required Methods§

Source

fn heading<S>(&self, text: S, depth: usize) -> String
where S: AsRef<str>,

Source

fn pseudo_heading<S>(&self, text: S) -> String
where S: AsRef<str>,

Source

fn heading_with_id<S1, S2>(&self, text: S1, depth: usize, id: S2) -> String
where S1: AsRef<str>, S2: AsRef<str>,

Source

fn pseudo_heading_with_id<S1, S2>(&self, text: S1, id: S2) -> String
where S1: AsRef<str>, S2: AsRef<str>,

Source

fn paragraph<S>(&self, text: S) -> String
where S: AsRef<str>,

Source

fn quote<S>(&self, text: S) -> String
where S: AsRef<str>,

Source

fn verbatim<S>(&self, content: S) -> String
where S: AsRef<str>,

Source

fn indented_verbatim<S>(&self, content: S) -> String
where S: AsRef<str>,

Source

fn example<S>(&self, content: S) -> String
where S: AsRef<str>,

Source

fn export<S>(&self, content: S) -> String
where S: AsRef<str>,

Source

fn center<S>(&self, content: S) -> String
where S: AsRef<str>,

Source

fn comment<S>(&self, text: S) -> String
where S: AsRef<str>,

Source

fn line_comment<S>(&self, text: S) -> String
where S: AsRef<str>,

Source

fn figure_with<S1, S2, S3, S4>( &self, id: S1, caption: S2, file_name: S3, result_of: Option<S4>, ) -> String
where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>, S4: AsRef<str>,

Source

fn caption<S>(&self, text: S) -> String
where S: AsRef<str>,

Source

fn results_of<S>(&self, id: S) -> String
where S: AsRef<str>,

Source

fn source<S1, S2>(&self, language: S1, src: S2, arguments: TSource) -> String
where S1: AsRef<str>, S2: AsRef<str>,

Source

fn source_with<S1, S2, S3, S4>( &self, language: S1, src: S2, arguments: TSource, id: S3, caption: S4, ) -> String
where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>, S4: AsRef<str>,

Source

fn inline_source<S1, S2>( &self, language: S1, src: S2, arguments: TSource, ) -> String
where S1: AsRef<str>, S2: AsRef<str>,

Source

fn ordered_list(&self, items: &[String], indentation: usize) -> String

Source

fn unordered_list(&self, items: &[String], indentation: usize) -> String

Source

fn definition_list(&self, items: &HashMap<String, String>) -> String

Source

fn table_with<S1, S2, S3>( &self, data: &[Vec<S1>], header_row: bool, id: S2, caption: S3, ) -> String
where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>,

Source

fn table_header_row<S>(&self, columns: &[S], add_hline: bool) -> String
where S: AsRef<str>,

Source

fn table_hline(&self, widths: &[usize]) -> String

Source

fn table_row<S>(&self, values: &[S]) -> String
where S: AsRef<str>,

Provided Methods§

Source

fn table<S>(&self, data: &[Vec<S>], header_row: bool) -> String
where S: AsRef<str>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§