#[non_exhaustive]pub struct CompilerStats {
pub invocations: u64,
pub duration_ns: u64,
}Expand description
Count and cumulative wall time for one compiler-invocation outcome.
Non-exhaustive for the same reason as AgentStats, which holds these:
leaving the outer bag open does not help if describing an outcome in more
detail still breaks the type inside it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.invocations: u64Number of compiler invocations observed.
duration_ns: u64Cumulative wall time spent in those invocations.
Implementations§
Trait Implementations§
Source§impl Clone for CompilerStats
impl Clone for CompilerStats
Source§fn clone(&self) -> CompilerStats
fn clone(&self) -> CompilerStats
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 CompilerStats
Source§impl Debug for CompilerStats
impl Debug for CompilerStats
Source§impl Default for CompilerStats
impl Default for CompilerStats
Source§fn default() -> CompilerStats
fn default() -> CompilerStats
Returns the “default value” for a type. Read more
impl Eq for CompilerStats
Source§impl PartialEq for CompilerStats
impl PartialEq for CompilerStats
impl StructuralPartialEq for CompilerStats
Auto Trait Implementations§
impl Freeze for CompilerStats
impl RefUnwindSafe for CompilerStats
impl Send for CompilerStats
impl Sync for CompilerStats
impl Unpin for CompilerStats
impl UnsafeUnpin for CompilerStats
impl UnwindSafe for CompilerStats
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