#[non_exhaustive]pub struct ReaderOptions {
pub extensions: Extensions,
pub greedy_paragraphs: bool,
}Expand description
Options controlling a Reader. Extended (not resignatured) as real options land.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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).
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.
Trait Implementations§
Source§impl Clone for ReaderOptions
impl Clone for ReaderOptions
Source§fn clone(&self) -> ReaderOptions
fn clone(&self) -> ReaderOptions
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 ReaderOptions
impl Debug for ReaderOptions
Source§impl Default for ReaderOptions
impl Default for ReaderOptions
Source§fn default() -> ReaderOptions
fn default() -> ReaderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReaderOptions
impl RefUnwindSafe for ReaderOptions
impl Send for ReaderOptions
impl Sync for ReaderOptions
impl Unpin for ReaderOptions
impl UnsafeUnpin for ReaderOptions
impl UnwindSafe for ReaderOptions
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