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§
fn heading<S>(&self, text: S, depth: usize) -> String
fn pseudo_heading<S>(&self, text: S) -> String
fn heading_with_id<S1, S2>(&self, text: S1, depth: usize, id: S2) -> String
fn pseudo_heading_with_id<S1, S2>(&self, text: S1, id: S2) -> String
fn paragraph<S>(&self, text: S) -> String
fn quote<S>(&self, text: S) -> String
fn verbatim<S>(&self, content: S) -> String
fn indented_verbatim<S>(&self, content: S) -> String
fn example<S>(&self, content: S) -> String
fn export<S>(&self, content: S) -> String
fn center<S>(&self, content: S) -> String
fn comment<S>(&self, text: S) -> String
fn line_comment<S>(&self, text: S) -> String
fn figure_with<S1, S2, S3, S4>( &self, id: S1, caption: S2, file_name: S3, result_of: Option<S4>, ) -> String
fn caption<S>(&self, text: S) -> String
fn results_of<S>(&self, id: S) -> String
fn source<S1, S2>(&self, language: S1, src: S2, arguments: TSource) -> String
fn source_with<S1, S2, S3, S4>( &self, language: S1, src: S2, arguments: TSource, id: S3, caption: S4, ) -> String
fn inline_source<S1, S2>( &self, language: S1, src: S2, arguments: TSource, ) -> String
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
fn table_header_row<S>(&self, columns: &[S], add_hline: bool) -> String
fn table_hline(&self, widths: &[usize]) -> String
fn table_row<S>(&self, values: &[S]) -> String
Provided Methods§
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.