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>,
}Fields§
§html_size: usize§parse_time_us: u64§node_count: usize§element_count: usize§text_node_count: usize§comment_count: usize§errors: Vec<String>§warnings: Vec<String>Implementations§
Source§impl ParseStats
impl ParseStats
pub fn has_errors(&self) -> bool
pub fn has_warnings(&self) -> bool
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 (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 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 UnsafeUnpin 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