pub struct ParserOptions {
pub flavor: Flavor,
pub dialect: Dialect,
pub extensions: Extensions,
pub pandoc_compat: PandocCompat,
pub refdef_labels: Option<Arc<HashSet<String>>>,
}Fields§
§flavor: Flavor§dialect: Dialect§extensions: Extensions§pandoc_compat: PandocCompatCompatibility target for ambiguous Pandoc behavior.
refdef_labels: Option<Arc<HashSet<String>>>Document-level reference link label set, populated by the
top-level parse() function when running CommonMark dialect and
consulted by inline parsing’s bracket resolution pass. None
means “not pre-computed”; the inline pipeline then treats every
reference-shaped bracket pair conservatively (current behavior),
which is correct for the Pandoc dialect and a graceful
degradation for embedded use cases that bypass parse().
Skipped by serde so config files don’t try to (de)serialize a runtime cache.
Implementations§
Source§impl ParserOptions
impl ParserOptions
pub fn effective_pandoc_compat(&self) -> PandocCompat
Trait Implementations§
Source§impl Clone for ParserOptions
impl Clone for ParserOptions
Source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserOptions
impl Debug for ParserOptions
Source§impl Default for ParserOptions
impl Default for ParserOptions
Source§fn default() -> ParserOptions
fn default() -> ParserOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParserOptions
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnsafeUnpin for ParserOptions
impl UnwindSafe for ParserOptions
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