pub struct NixExprStats {
pub node_count: u64,
pub lambdas: u64,
pub applications: u64,
pub let_bindings: u64,
pub attr_sets: u64,
pub conditionals: u64,
pub var_refs: u64,
pub literals: u64,
pub max_depth: u64,
}Expand description
Statistics about a Nix expression tree.
Fields§
§node_count: u64Total number of nodes.
lambdas: u64Number of lambda nodes.
applications: u64Number of application nodes.
let_bindings: u64Number of let-binding nodes.
attr_sets: u64Number of attribute set nodes.
conditionals: u64Number of if-then-else nodes.
var_refs: u64Number of variable references.
literals: u64Number of literal nodes.
max_depth: u64Maximum nesting depth.
Implementations§
Trait Implementations§
Source§impl Clone for NixExprStats
impl Clone for NixExprStats
Source§fn clone(&self) -> NixExprStats
fn clone(&self) -> NixExprStats
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 NixExprStats
impl Debug for NixExprStats
Source§impl Default for NixExprStats
impl Default for NixExprStats
Source§fn default() -> NixExprStats
fn default() -> NixExprStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NixExprStats
impl RefUnwindSafe for NixExprStats
impl Send for NixExprStats
impl Sync for NixExprStats
impl Unpin for NixExprStats
impl UnsafeUnpin for NixExprStats
impl UnwindSafe for NixExprStats
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