pub struct OrgModeFormatter;
Implementations§
Source§impl OrgModeFormatter
impl OrgModeFormatter
pub const fn new() -> Self
pub fn drawer<S>(&self, name: S) -> String
pub fn drawer_with_content<S1, S2>(&self, name: S1, content: S2) -> String
pub fn property_drawer(&self, properties: HashMap<String, String>) -> String
pub fn property<S1, S2>(&self, name: S1, value: S2) -> String
pub fn logbook_drawer<S1, S2, S3>( &self, log_entries: &[(S1, S2, Option<S3>)], ) -> String
pub fn log_entry<S1, S2, S3>( &self, headline: S1, date: S2, note: Option<S3>, ) -> String
Trait Implementations§
Source§impl BlockFormat<SourceBlockArguments> for OrgModeFormatter
impl BlockFormat<SourceBlockArguments> for OrgModeFormatter
fn heading<S>(&self, text: S, depth: usize) -> String
fn heading_with_id<S1, S2>(&self, text: S1, depth: usize, id: S2) -> String
fn pseudo_heading<S>(&self, s: S) -> String
fn pseudo_heading_with_id<S1, S2>(&self, text: S1, id: S2) -> String
fn paragraph<S>(&self, s: S) -> String
fn quote<S>(&self, s: S) -> String
fn verbatim<S>(&self, s: S) -> String
fn indented_verbatim<S>(&self, s: S) -> String
fn example<S>(&self, s: S) -> String
fn export<S>(&self, s: S) -> String
fn center<S>(&self, s: S) -> String
fn comment<S>(&self, s: S) -> String
fn line_comment<S>(&self, s: S) -> String
fn source<S1, S2>( &self, language: S1, src: S2, arguments: SourceBlockArguments, ) -> String
fn source_with<S1, S2, S3, S4>( &self, language: S1, src: S2, arguments: SourceBlockArguments, id: S3, caption: S4, ) -> String
fn inline_source<S1, S2>( &self, language: S1, src: S2, arguments: SourceBlockArguments, ) -> 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 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
fn table<S>(&self, data: &[Vec<S>], header_row: bool) -> String
Source§impl Clone for OrgModeFormatter
impl Clone for OrgModeFormatter
Source§fn clone(&self) -> OrgModeFormatter
fn clone(&self) -> OrgModeFormatter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OrgModeFormatter
impl Debug for OrgModeFormatter
Source§impl Default for OrgModeFormatter
impl Default for OrgModeFormatter
Source§fn default() -> OrgModeFormatter
fn default() -> OrgModeFormatter
Returns the “default value” for a type. Read more
Source§impl DocumentationWriter<IncludeArguments, SourceBlockArguments, OrgModeFormatter> for DocumentationGenerator
impl DocumentationWriter<IncludeArguments, SourceBlockArguments, OrgModeFormatter> for DocumentationGenerator
fn formatter() -> &'static OrgModeFormatter
fn write_book<T>(
&mut self,
loader: &mut T,
cache: &mut impl ModuleStore,
config: BookConfig,
) -> Result<(), Error>where
T: ModuleLoader,
fn write_preamble<W>( &mut self, title: &str, language: &str, include_toc: bool, writer: &mut W, ) -> Result<(), Error>
fn write_module_description<W>( &mut self, heading: Heading, module: &Module, _: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
fn write_module_definitions<W>( &mut self, heading_level: u8, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
fn write_module_uml_overview<W>( &mut self, module: &Module, _: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
fn write_module_sdml_listing<W>( &mut self, heading: Heading, module: &Module, writer: &mut W, ) -> Result<(), Error>
fn write_module_rdf_listing<W>( &mut self, heading: Heading, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
fn write_module_dependency_table<W>( &mut self, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
fn write_module_dependency_graph<W>( &mut self, heading: Heading, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
Source§impl LinkFormat for OrgModeFormatter
impl LinkFormat for OrgModeFormatter
fn noweb_target<S>(&self, s: S) -> String
fn name_target<S>(&self, s: S) -> String
fn make_id_link<S>(&self, id: S) -> String
fn make_heading_link<S>(&self, heading: S) -> String
fn link<S>(&self, target: S) -> String
fn link_with_description<S1, S2>(&self, target: S1, description: S2) -> String
Source§impl PageFormat<IncludeArguments> for OrgModeFormatter
impl PageFormat<IncludeArguments> for OrgModeFormatter
fn title<S>(&self, s: S) -> String
fn language<S>(&self, s: S) -> String
fn style_uri<S>(&self, s: S) -> String
fn style_inline<S>(&self, s: S) -> String
fn options<S>(&self, s: S) -> String
fn include_file<S>(&self, s: S) -> String
fn include_file_with_args<S>(&self, s: S, arguments: IncludeArguments) -> String
Source§impl PartialEq for OrgModeFormatter
impl PartialEq for OrgModeFormatter
Source§impl TextFormat for OrgModeFormatter
impl TextFormat for OrgModeFormatter
fn bold<S>(&self, s: S) -> String
fn italic<S>(&self, s: S) -> String
fn underline<S>(&self, s: S) -> String
fn mono<S>(&self, s: S) -> String
fn code<S>(&self, s: S) -> String
fn strikethrough<S>(&self, s: S) -> String
fn superscript<S>(&self, s: S) -> String
fn subscript<S>(&self, s: S) -> String
impl Copy for OrgModeFormatter
impl Formatter<IncludeArguments, SourceBlockArguments> for OrgModeFormatter
impl StructuralPartialEq for OrgModeFormatter
Auto Trait Implementations§
impl Freeze for OrgModeFormatter
impl RefUnwindSafe for OrgModeFormatter
impl Send for OrgModeFormatter
impl Sync for OrgModeFormatter
impl Unpin for OrgModeFormatter
impl UnwindSafe for OrgModeFormatter
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