pub struct CompileStats {
pub type_literals_total: u64,
pub type_literals_const_folded: u64,
pub type_literals_dynamic: u64,
pub type_ref_sites: u64,
}Expand description
Compile-time statistics captured when a program is compiled. Independent
of run-time profiling — these counts reflect the shape of the compiled
program itself (how many Type literals it contains, how many got
const-folded, etc.). Runtime cost of Type evaluation appears in the
instruction profile under build_type_ref / build_record / etc.
Fields§
§type_literals_total: u64§type_literals_const_folded: u64§type_literals_dynamic: u64§type_ref_sites: u64Implementations§
Source§impl CompileStats
impl CompileStats
Trait Implementations§
Source§impl Clone for CompileStats
impl Clone for CompileStats
Source§fn clone(&self) -> CompileStats
fn clone(&self) -> CompileStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompileStats
Source§impl Debug for CompileStats
impl Debug for CompileStats
Source§impl Default for CompileStats
impl Default for CompileStats
Source§fn default() -> CompileStats
fn default() -> CompileStats
Returns the “default value” for a type. Read more
impl Eq for CompileStats
Source§impl PartialEq for CompileStats
impl PartialEq for CompileStats
Source§fn eq(&self, other: &CompileStats) -> bool
fn eq(&self, other: &CompileStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompileStats
Auto Trait Implementations§
impl Freeze for CompileStats
impl RefUnwindSafe for CompileStats
impl Send for CompileStats
impl Sync for CompileStats
impl Unpin for CompileStats
impl UnsafeUnpin for CompileStats
impl UnwindSafe for CompileStats
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