pub struct Parse {
pub fragment: bool,
pub emit_parse_errors: bool,
pub verbose: bool,
}Expand description
html.parse: HTML into hast; options named as rehype-parse names them.
Fields§
§fragment: boolParse a fragment, as in a template, rather than a whole document.
emit_parse_errors: boolReport parse errors as messages on the file.
verbose: boolAdd the positions of opening and closing tags and attributes to elements.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parse
impl<'de> Deserialize<'de> for Parse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Parse
impl RefUnwindSafe for Parse
impl Send for Parse
impl Sync for Parse
impl Unpin for Parse
impl UnsafeUnpin for Parse
impl UnwindSafe for Parse
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