pub struct ParseOptions {
pub single_tilde_strikethrough: bool,
pub preserve_character_escapes: bool,
pub preserve_character_references: bool,
}Expand description
Lexing knobs that tune how existing constructs are read or how source text is
preserved, separate from which constructs are recognized (Constructs).
Fields§
§single_tilde_strikethrough: boolTreat a single ~text~ as strikethrough (in addition to ~~text~~).
Inert unless gfm_strikethrough is also enabled.
preserve_character_escapes: boolKeep backslash character escapes (e.g. \*) as Escape nodes instead of
folding them into text, so the original source can be reproduced.
preserve_character_references: boolKeep character references (e.g. &) as CharacterReference nodes
instead of resolving them to their value.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
impl Debug for ParseOptions
Source§impl Default for ParseOptions
impl Default for ParseOptions
Source§fn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
impl Eq for ParseOptions
Source§impl PartialEq for ParseOptions
impl PartialEq for ParseOptions
Source§fn eq(&self, other: &ParseOptions) -> bool
fn eq(&self, other: &ParseOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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