Struct SourceBlockArguments

Source
pub struct SourceBlockArguments {
Show 16 fields pub add_line_numbers: bool, pub continue_line_numbers: bool, pub line_number_start: Option<usize>, pub remove_source_labels: bool, pub label_syntax: Option<String>, pub preserve_global_indentation: bool, pub eval: SourceEval, pub exports: SourceExports, pub results: SourceResults, pub session: Option<String>, pub cmd_line: Option<String>, pub cache: bool, pub noweb: bool, pub hlines: bool, pub tangle: bool, pub rest: Vec<String>,
}

Fields§

§add_line_numbers: bool§continue_line_numbers: bool§line_number_start: Option<usize>§remove_source_labels: bool§label_syntax: Option<String>§preserve_global_indentation: bool§eval: SourceEval§exports: SourceExports§results: SourceResults§session: Option<String>§cmd_line: Option<String>§cache: bool§noweb: bool§hlines: bool§tangle: bool§rest: Vec<String>

Trait Implementations§

Source§

impl ArgumentType for SourceBlockArguments

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 SourceBlockArguments

Source§

fn clone(&self) -> SourceBlockArguments

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 SourceBlockArguments

Source§

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

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

impl Default for SourceBlockArguments

Source§

fn default() -> SourceBlockArguments

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 From<SourceBlockArguments> for String

Source§

fn from(value: SourceBlockArguments) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SourceBlockArguments

Source§

fn eq(&self, other: &SourceBlockArguments) -> 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 Formatter<IncludeArguments, SourceBlockArguments> for OrgModeFormatter

Source§

impl StructuralPartialEq for SourceBlockArguments

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,