pub struct ContextStats {
pub num_locals: usize,
pub num_lets: usize,
pub num_implicit: usize,
pub max_depth: usize,
}Expand description
Statistics for a context.
Fields§
§num_locals: usizeTotal number of locals.
num_lets: usizeNumber of let-bindings.
num_implicit: usizeNumber of implicit binders.
max_depth: usizeMaximum nesting depth reached.
Implementations§
Source§impl ContextStats
impl ContextStats
Sourcepub fn from_context(ctx: &Context) -> Self
pub fn from_context(ctx: &Context) -> Self
Compute stats from a context.
Trait Implementations§
Source§impl Clone for ContextStats
impl Clone for ContextStats
Source§fn clone(&self) -> ContextStats
fn clone(&self) -> ContextStats
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 ContextStats
impl Debug for ContextStats
Source§impl Default for ContextStats
impl Default for ContextStats
Source§fn default() -> ContextStats
fn default() -> ContextStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextStats
impl RefUnwindSafe for ContextStats
impl Send for ContextStats
impl Sync for ContextStats
impl Unpin for ContextStats
impl UnsafeUnpin for ContextStats
impl UnwindSafe for ContextStats
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