pub struct ParseStats {
pub html_size: usize,
pub parse_time_us: u64,
pub node_count: usize,
pub element_count: usize,
pub text_node_count: usize,
pub comment_count: usize,
pub errors: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Parsing statistics
Fields§
§html_size: usizeHTML size in bytes
parse_time_us: u64Parse time in microseconds
node_count: usizeNumber of DOM nodes
element_count: usizeNumber of elements
text_node_count: usizeNumber of text nodes
comment_count: usizeNumber of comments
errors: Vec<String>Errors encountered during parsing
warnings: Vec<String>Warnings
Implementations§
Source§impl ParseStats
impl ParseStats
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if parsing had errors
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if parsing had warnings
Trait Implementations§
Source§impl Clone for ParseStats
impl Clone for ParseStats
Source§fn clone(&self) -> ParseStats
fn clone(&self) -> ParseStats
Returns a duplicate of the value. Read more
1.0.0 · 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 ParseStats
impl Debug for ParseStats
Source§impl Default for ParseStats
impl Default for ParseStats
Source§fn default() -> ParseStats
fn default() -> ParseStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParseStats
impl<'de> Deserialize<'de> for ParseStats
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 ParseStats
impl RefUnwindSafe for ParseStats
impl Send for ParseStats
impl Sync for ParseStats
impl Unpin for ParseStats
impl UnwindSafe for ParseStats
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