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§impl Debug for ContextStats
impl Debug for ContextStats
Auto Trait Implementations§
impl Forget for ContextStats
impl Freeze for ContextStats
impl Move 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