pub struct Stats {
pub steps: u64,
pub type_nodes: usize,
}Expand description
Work counters of a finished check.
§Examples
use hir_lang::Builder;
use typeck_lang::{check, Profile};
let mut b = Builder::new();
let root = b.module(None, &[]);
let hir = b.finish(root)?;
let typed = check(&hir, &Profile::static_explicit()).unwrap();
assert!(typed.stats().steps < 100);Fields§
§steps: u64Steps charged against Budget::steps.
type_nodes: usizeFinal type-store size (nodes plus pooled children).
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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