Struct OrgModeFormatter

Source
pub struct OrgModeFormatter;

Implementations§

Source§

impl OrgModeFormatter

Source

pub const fn new() -> Self

Source

pub fn drawer<S>(&self, name: S) -> String
where S: AsRef<str>,

Source

pub fn drawer_with_content<S1, S2>(&self, name: S1, content: S2) -> String
where S1: AsRef<str>, S2: AsRef<str>,

Source

pub fn property_drawer(&self, properties: HashMap<String, String>) -> String

Source

pub fn property<S1, S2>(&self, name: S1, value: S2) -> String
where S1: AsRef<str>, S2: AsRef<str>,

Source

pub fn logbook_drawer<S1, S2, S3>( &self, log_entries: &[(S1, S2, Option<S3>)], ) -> String
where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>,

Source

pub fn log_entry<S1, S2, S3>( &self, headline: S1, date: S2, note: Option<S3>, ) -> String
where S1: AsRef<str>, S2: AsRef<str>, S3: AsRef<str>,

Trait Implementations§

Source§

impl BlockFormat<SourceBlockArguments> for OrgModeFormatter

Source§

fn heading<S>(&self, text: S, depth: usize) -> 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<S>(&self, s: S) -> String
where S: 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, s: S) -> String
where S: AsRef<str>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn source_with<S1, S2, S3, S4>( &self, language: S1, src: S2, arguments: SourceBlockArguments, 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: SourceBlockArguments, ) -> String
where S1: AsRef<str>, S2: 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 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>,

Source§

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

Source§

impl Clone for OrgModeFormatter

Source§

fn clone(&self) -> OrgModeFormatter

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OrgModeFormatter

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for OrgModeFormatter

Source§

fn default() -> OrgModeFormatter

Returns the “default value” for a type. Read more
Source§

impl DocumentationWriter<IncludeArguments, SourceBlockArguments, OrgModeFormatter> for DocumentationGenerator

Source§

fn formatter() -> &'static OrgModeFormatter

Source§

fn write_book<T>( &mut self, loader: &mut T, cache: &mut impl ModuleStore, config: BookConfig, ) -> Result<(), Error>
where T: ModuleLoader,

Source§

fn write_preamble<W>( &mut self, title: &str, language: &str, include_toc: bool, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_description<W>( &mut self, heading: Heading, module: &Module, _: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_definitions<W>( &mut self, heading_level: u8, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_uml_overview<W>( &mut self, module: &Module, _: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_sdml_listing<W>( &mut self, heading: Heading, module: &Module, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_rdf_listing<W>( &mut self, heading: Heading, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_dependency_table<W>( &mut self, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

fn write_module_dependency_graph<W>( &mut self, heading: Heading, module: &Module, cache: &impl ModuleStore, writer: &mut W, ) -> Result<(), Error>
where W: Write + Sized,

Source§

impl LinkFormat for OrgModeFormatter

Source§

fn noweb_target<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn name_target<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

impl PageFormat<IncludeArguments> for OrgModeFormatter

Source§

fn title<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn language<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn style_uri<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn style_inline<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn options<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn include_file<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn include_file_with_args<S>(&self, s: S, arguments: IncludeArguments) -> String
where S: AsRef<str>,

Source§

impl PartialEq for OrgModeFormatter

Source§

fn eq(&self, other: &OrgModeFormatter) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TextFormat for OrgModeFormatter

Source§

fn bold<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn italic<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn underline<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn mono<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn code<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn strikethrough<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn superscript<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

fn subscript<S>(&self, s: S) -> String
where S: AsRef<str>,

Source§

impl Copy for OrgModeFormatter

Source§

impl Formatter<IncludeArguments, SourceBlockArguments> for OrgModeFormatter

Source§

impl StructuralPartialEq for OrgModeFormatter

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,