pub struct ParserConfig { /* private fields */ }Expand description
Parser configuration with safe defaults for the MVP.
Implementations§
Source§impl ParserConfig
impl ParserConfig
pub fn new() -> Self
pub fn with_preserve_comments(self, preserve: bool) -> Self
pub fn with_preserve_cdata(self, preserve: bool) -> Self
pub fn with_max_document_bytes(self, limit: usize) -> Self
pub fn with_max_text_bytes(self, limit: usize) -> Self
pub fn with_max_depth(self, limit: usize) -> Self
pub fn with_max_nodes(self, limit: usize) -> Self
pub fn with_security(self, security: ParserSecurityConfig) -> Self
pub fn preserve_comments(&self) -> bool
pub fn preserve_cdata(&self) -> bool
pub fn security(&self) -> &ParserSecurityConfig
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
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 ParserConfig
impl Debug for ParserConfig
Source§impl Default for ParserConfig
impl Default for ParserConfig
impl Eq for ParserConfig
Source§impl PartialEq for ParserConfig
impl PartialEq for ParserConfig
Source§fn eq(&self, other: &ParserConfig) -> bool
fn eq(&self, other: &ParserConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParserConfig
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnsafeUnpin for ParserConfig
impl UnwindSafe for ParserConfig
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