pub struct AstStats {
pub total_nodes: usize,
pub text_nodes: usize,
pub function_calls: usize,
pub javascript_nodes: usize,
pub escaped_nodes: usize,
pub max_depth: usize,
pub unique_functions: usize,
}Expand description
Calculate statistics about the AST
Fields§
§total_nodes: usize§text_nodes: usize§function_calls: usize§javascript_nodes: usize§escaped_nodes: usize§max_depth: usize§unique_functions: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for AstStats
impl RefUnwindSafe for AstStats
impl Send for AstStats
impl Sync for AstStats
impl Unpin for AstStats
impl UnsafeUnpin for AstStats
impl UnwindSafe for AstStats
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