#[non_exhaustive]pub struct ReaderOptions {
pub extensions: Extensions,
pub tab_stop: usize,
pub greedy_paragraphs: bool,
pub source_dir: Option<PathBuf>,
}Expand description
Options controlling a Reader.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.extensions: ExtensionsFormat extensions to enable. Strict-CommonMark readers ignore this (the empty preset).
tab_stop: usizeColumn grid a tab advances to in the formats that expand tabs. Zero leaves tabs as written.
greedy_paragraphs: boolWhen set, an open paragraph is greedy: a following line that would otherwise open a block (a blockquote, heading, list, thematic break, fenced div, or footnote definition) is folded into the paragraph as a lazy continuation instead. Only a blank line, a fenced code block, or an HTML block ends the paragraph. Unset, every such line interrupts the paragraph.
source_dir: Option<PathBuf>The directory the input was named under, as written. A format whose sources refer to companion files (included sources, imported modules, image paths) resolves them against it; unset, such references are left exactly as written.
Trait Implementations§
Source§impl Clone for ReaderOptions
impl Clone for ReaderOptions
Source§fn clone(&self) -> ReaderOptions
fn clone(&self) -> ReaderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more