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
impl ArgumentType for SourceBlockArguments
fn is_default(&self) -> bool
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 SourceBlockArguments
impl Clone for SourceBlockArguments
Source§fn clone(&self) -> SourceBlockArguments
fn clone(&self) -> SourceBlockArguments
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 SourceBlockArguments
impl Debug for SourceBlockArguments
Source§impl Default for SourceBlockArguments
impl Default for SourceBlockArguments
Source§fn default() -> SourceBlockArguments
fn default() -> SourceBlockArguments
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 From<SourceBlockArguments> for String
impl From<SourceBlockArguments> for String
Source§fn from(value: SourceBlockArguments) -> Self
fn from(value: SourceBlockArguments) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourceBlockArguments
impl PartialEq for SourceBlockArguments
impl Formatter<IncludeArguments, SourceBlockArguments> for OrgModeFormatter
impl StructuralPartialEq for SourceBlockArguments
Auto Trait Implementations§
impl Freeze for SourceBlockArguments
impl RefUnwindSafe for SourceBlockArguments
impl Send for SourceBlockArguments
impl Sync for SourceBlockArguments
impl Unpin for SourceBlockArguments
impl UnwindSafe for SourceBlockArguments
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